ArmNN
 24.02
armnnDeserializer Namespace Reference

Classes

struct  BindingPointInfo
 
class  IDeserializer
 

Typedefs

using IDeserializerPtr = std::unique_ptr< IDeserializer, void(*)(IDeserializer *parser)>
 
using ConstTensorRawPtr = const armnnSerializer::ConstTensor *
 
using GraphPtr = const armnnSerializer::SerializedGraph *
 
using TensorRawPtr = const armnnSerializer::TensorInfo *
 
using Pooling2dDescriptor = const armnnSerializer::Pooling2dDescriptor *
 
using Pooling3dDescriptor = const armnnSerializer::Pooling3dDescriptor *
 
using NormalizationDescriptorPtr = const armnnSerializer::NormalizationDescriptor *
 
using LstmDescriptorPtr = const armnnSerializer::LstmDescriptor *
 
using LstmInputParamsPtr = const armnnSerializer::LstmInputParams *
 
using QLstmDescriptorPtr = const armnnSerializer::QLstmDescriptor *
 
using QunatizedLstmInputParamsPtr = const armnnSerializer::QuantizedLstmInputParams *
 
using TensorRawPtrVector = std::vector< TensorRawPtr >
 
using LayerRawPtr = const armnnSerializer::LayerBase *
 
using LayerBaseRawPtr = const armnnSerializer::LayerBase *
 
using LayerBaseRawPtrVector = std::vector< LayerBaseRawPtr >
 
using UnidirectionalSequenceLstmDescriptorPtr = const armnnSerializer::UnidirectionalSequenceLstmDescriptor *
 

Functions

bool CheckShape (const armnn::TensorShape &actual, const std::vector< uint32_t > &expected)
 
armnn::DataLayout ToDataLayout (armnnSerializer::DataLayout dataLayout)
 
armnn::ActivationFunction ToActivationFunction (armnnSerializer::ActivationFunction function)
 
armnn::ArgMinMaxFunction ToArgMinMaxFunction (armnnSerializer::ArgMinMaxFunction function)
 
armnn::ComparisonOperation ToComparisonOperation (armnnSerializer::ComparisonOperation operation)
 
armnn::ReduceOperation ToReduceOperation (armnnSerializer::ReduceOperation operation)
 
armnn::LogicalBinaryOperation ToLogicalBinaryOperation (armnnSerializer::LogicalBinaryOperation operation)
 
armnn::BinaryOperation ToElementwiseBinaryOperation (armnnSerializer::BinaryOperation operation)
 
armnn::UnaryOperation ToElementwiseUnaryOperation (armnnSerializer::UnaryOperation operation)
 
armnn::PaddingMode ToPaddingMode (armnnSerializer::PaddingMode paddingMode)
 
armnn::ResizeMethod ToResizeMethod (armnnSerializer::ResizeMethod method)
 
armnn::TensorInfo ToTensorInfo (TensorRawPtr tensorPtr)
 
armnn::ConstTensor ToConstTensor (ConstTensorRawPtr constTensorPtr)
 
const armnnSerializer::OriginsDescriptor * GetOriginsDescriptor (const armnnSerializer::SerializedGraph *graph, unsigned int layerIndex)
 

Typedef Documentation

◆ ConstTensorRawPtr

using ConstTensorRawPtr = const armnnSerializer::ConstTensor *

Definition at line 18 of file Deserializer.hpp.

◆ GraphPtr

using GraphPtr = const armnnSerializer::SerializedGraph *

Definition at line 19 of file Deserializer.hpp.

◆ IDeserializerPtr

using IDeserializerPtr = std::unique_ptr<IDeserializer, void(*)(IDeserializer* parser)>

Definition at line 25 of file IDeserializer.hpp.

◆ LayerBaseRawPtr

using LayerBaseRawPtr = const armnnSerializer::LayerBase *

Definition at line 30 of file Deserializer.hpp.

◆ LayerBaseRawPtrVector

using LayerBaseRawPtrVector = std::vector<LayerBaseRawPtr>

Definition at line 31 of file Deserializer.hpp.

◆ LayerRawPtr

using LayerRawPtr = const armnnSerializer::LayerBase *

Definition at line 29 of file Deserializer.hpp.

◆ LstmDescriptorPtr

using LstmDescriptorPtr = const armnnSerializer::LstmDescriptor *

Definition at line 24 of file Deserializer.hpp.

◆ LstmInputParamsPtr

using LstmInputParamsPtr = const armnnSerializer::LstmInputParams *

Definition at line 25 of file Deserializer.hpp.

◆ NormalizationDescriptorPtr

using NormalizationDescriptorPtr = const armnnSerializer::NormalizationDescriptor *

Definition at line 23 of file Deserializer.hpp.

◆ Pooling2dDescriptor

using Pooling2dDescriptor = const armnnSerializer::Pooling2dDescriptor *

Definition at line 21 of file Deserializer.hpp.

◆ Pooling3dDescriptor

using Pooling3dDescriptor = const armnnSerializer::Pooling3dDescriptor *

Definition at line 22 of file Deserializer.hpp.

◆ QLstmDescriptorPtr

using QLstmDescriptorPtr = const armnnSerializer::QLstmDescriptor *

Definition at line 26 of file Deserializer.hpp.

◆ QunatizedLstmInputParamsPtr

using QunatizedLstmInputParamsPtr = const armnnSerializer::QuantizedLstmInputParams *

Definition at line 27 of file Deserializer.hpp.

◆ TensorRawPtr

using TensorRawPtr = const armnnSerializer::TensorInfo *

Definition at line 20 of file Deserializer.hpp.

◆ TensorRawPtrVector

using TensorRawPtrVector = std::vector<TensorRawPtr>

Definition at line 28 of file Deserializer.hpp.

◆ UnidirectionalSequenceLstmDescriptorPtr

using UnidirectionalSequenceLstmDescriptorPtr = const armnnSerializer::UnidirectionalSequenceLstmDescriptor *

Definition at line 32 of file Deserializer.hpp.

Function Documentation

◆ CheckShape()

bool armnnDeserializer::CheckShape ( const armnn::TensorShape actual,
const std::vector< uint32_t > &  expected 
)

Definition at line 188 of file Deserializer.cpp.

189 {
190  const unsigned int actualSize = actual.GetNumDimensions();
191  if (actualSize != expected.size())
192  {
193  return false;
194  }
195 
196  for (unsigned int i = 0u; i < actualSize; i++)
197  {
198  if (actual[i] != static_cast<unsigned int>(expected[i]))
199  {
200  return false;
201  }
202  }
203 
204  return true;
205 }

References TensorShape::GetNumDimensions().

◆ GetOriginsDescriptor()

const armnnSerializer::OriginsDescriptor* armnnDeserializer::GetOriginsDescriptor ( const armnnSerializer::SerializedGraph *  graph,
unsigned int  layerIndex 
)

Definition at line 2033 of file Deserializer.cpp.

2035 {
2036  auto layerType = graph->layers()->Get(layerIndex)->layer_type();
2037 
2038  switch (layerType)
2039  {
2040  case Layer::Layer_ConcatLayer:
2041  return graph->layers()->Get(layerIndex)->layer_as_ConcatLayer()->descriptor();
2042  case Layer::Layer_MergerLayer:
2043  return graph->layers()->Get(layerIndex)->layer_as_MergerLayer()->descriptor();
2044  default:
2045  throw armnn::Exception("unknown layer type, should be concat or merger");
2046  }
2047 }

◆ ToActivationFunction()

armnn::ActivationFunction armnnDeserializer::ToActivationFunction ( armnnSerializer::ActivationFunction  function)

Definition at line 479 of file Deserializer.cpp.

480 {
481  switch (function)
482  {
483  case armnnSerializer::ActivationFunction_Sigmoid:
485  case armnnSerializer::ActivationFunction_TanH:
487  case armnnSerializer::ActivationFunction_Linear:
489  case armnnSerializer::ActivationFunction_ReLu:
491  case armnnSerializer::ActivationFunction_BoundedReLu:
493  case armnnSerializer::ActivationFunction_LeakyReLu:
495  case armnnSerializer::ActivationFunction_Abs:
497  case armnnSerializer::ActivationFunction_Sqrt:
499  case armnnSerializer::ActivationFunction_Square:
501  case armnnSerializer::ActivationFunction_Elu:
503  case armnnSerializer::ActivationFunction_HardSwish:
505  case armnnSerializer::ActivationFunction_Gelu:
507  default:
509  }
510 }

References armnn::Abs, armnn::BoundedReLu, armnn::Elu, armnn::Gelu, armnn::HardSwish, armnn::LeakyReLu, armnn::Linear, armnn::ReLu, armnn::Sigmoid, armnn::Sqrt, armnn::Square, and armnn::TanH.

◆ ToArgMinMaxFunction()

armnn::ArgMinMaxFunction armnnDeserializer::ToArgMinMaxFunction ( armnnSerializer::ArgMinMaxFunction  function)

Definition at line 512 of file Deserializer.cpp.

513 {
514  switch (function)
515  {
516  case armnnSerializer::ArgMinMaxFunction::ArgMinMaxFunction_Max:
518  case armnnSerializer::ArgMinMaxFunction::ArgMinMaxFunction_Min:
519  default:
521  }
522 }

References armnn::Max, and armnn::Min.

◆ ToComparisonOperation()

armnn::ComparisonOperation armnnDeserializer::ToComparisonOperation ( armnnSerializer::ComparisonOperation  operation)

Definition at line 524 of file Deserializer.cpp.

525 {
526  switch (operation)
527  {
528  case armnnSerializer::ComparisonOperation::ComparisonOperation_Equal:
530  case armnnSerializer::ComparisonOperation::ComparisonOperation_Greater:
532  case armnnSerializer::ComparisonOperation::ComparisonOperation_GreaterOrEqual:
534  case armnnSerializer::ComparisonOperation::ComparisonOperation_Less:
536  case armnnSerializer::ComparisonOperation::ComparisonOperation_LessOrEqual:
538  case armnnSerializer::ComparisonOperation::ComparisonOperation_NotEqual:
539  default:
541  }
542 }

References armnn::Equal, armnn::Greater, armnn::GreaterOrEqual, armnn::Less, armnn::LessOrEqual, and armnn::NotEqual.

◆ ToConstTensor()

armnn::ConstTensor armnnDeserializer::ToConstTensor ( ConstTensorRawPtr  constTensorPtr)

Definition at line 760 of file Deserializer.cpp.

761 {
762  CHECK_CONST_TENSOR_PTR(constTensorPtr);
763  armnn::TensorInfo tensorInfo = ToTensorInfo(constTensorPtr->info());
764  tensorInfo.SetConstant();
765 
766  switch (constTensorPtr->data_type())
767  {
768  case ConstTensorData_ByteData:
769  {
770  auto byteData = constTensorPtr->data_as_ByteData()->data();
771  CHECK_CONST_TENSOR_SIZE(byteData->size(), tensorInfo.GetNumElements());
772  return armnn::ConstTensor(tensorInfo, byteData->data());
773  }
774  case ConstTensorData_ShortData:
775  {
776  auto shortData = constTensorPtr->data_as_ShortData()->data();
777  CHECK_CONST_TENSOR_SIZE(shortData->size(), tensorInfo.GetNumElements());
778  return armnn::ConstTensor(tensorInfo, shortData->data());
779  }
780  case ConstTensorData_IntData:
781  {
782  auto intData = constTensorPtr->data_as_IntData()->data();
783  CHECK_CONST_TENSOR_SIZE(intData->size(), tensorInfo.GetNumElements());
784  return armnn::ConstTensor(tensorInfo, intData->data());
785  }
786  case ConstTensorData_LongData:
787  {
788  auto longData = constTensorPtr->data_as_LongData()->data();
789  CHECK_CONST_TENSOR_SIZE(longData->size(), tensorInfo.GetNumElements());
790  return armnn::ConstTensor(tensorInfo, longData->data());
791  }
792  default:
793  {
794  CheckLocation location = CHECK_LOCATION();
795  throw ParseException(fmt::format("Unsupported data type {0} = {1}. {2}",
796  constTensorPtr->data_type(),
797  EnumNameConstTensorData(constTensorPtr->data_type()),
798  location.AsString()));
799  }
800  }
801 }

References CheckLocation::AsString(), CHECK_CONST_TENSOR_PTR, CHECK_CONST_TENSOR_SIZE, CHECK_LOCATION, TensorInfo::GetNumElements(), TensorInfo::SetConstant(), and ToTensorInfo().

◆ ToDataLayout()

armnn::DataLayout armnnDeserializer::ToDataLayout ( armnnSerializer::DataLayout  dataLayout)

Definition at line 463 of file Deserializer.cpp.

464 {
465  switch (dataLayout)
466  {
467  case armnnSerializer::DataLayout::DataLayout_NHWC:
469  case armnnSerializer::DataLayout::DataLayout_NDHWC:
471  case armnnSerializer::DataLayout::DataLayout_NCDHW:
473  case armnnSerializer::DataLayout::DataLayout_NCHW:
474  default:
476  }
477 }

References armnn::NCDHW, armnn::NCHW, armnn::NDHWC, and armnn::NHWC.

◆ ToElementwiseBinaryOperation()

armnn::BinaryOperation armnnDeserializer::ToElementwiseBinaryOperation ( armnnSerializer::BinaryOperation  operation)

Definition at line 576 of file Deserializer.cpp.

577 {
578  switch (operation)
579  {
580  case armnnSerializer::BinaryOperation::BinaryOperation_Add:
582  case armnnSerializer::BinaryOperation::BinaryOperation_Div:
584  case armnnSerializer::BinaryOperation::BinaryOperation_Maximum:
586  case armnnSerializer::BinaryOperation::BinaryOperation_Minimum:
588  case armnnSerializer::BinaryOperation::BinaryOperation_Mul:
590  case armnnSerializer::BinaryOperation::BinaryOperation_Sub:
592  case armnnSerializer::BinaryOperation::BinaryOperation_SqDiff:
594  case armnnSerializer::BinaryOperation::BinaryOperation_Power:
596  default:
597  throw armnn::InvalidArgumentException("Binary operation unknown");
598  }
599 }

References armnn::Add, armnn::Div, armnn::Maximum, armnn::Minimum, armnn::Mul, armnn::Power, armnn::SqDiff, and armnn::Sub.

◆ ToElementwiseUnaryOperation()

armnn::UnaryOperation armnnDeserializer::ToElementwiseUnaryOperation ( armnnSerializer::UnaryOperation  operation)

Definition at line 601 of file Deserializer.cpp.

602 {
603  switch (operation)
604  {
605  case armnnSerializer::UnaryOperation::UnaryOperation_Abs:
607  case armnnSerializer::UnaryOperation::UnaryOperation_Ceil:
609  case armnnSerializer::UnaryOperation::UnaryOperation_Rsqrt:
611  case armnnSerializer::UnaryOperation::UnaryOperation_Sqrt:
613  case armnnSerializer::UnaryOperation::UnaryOperation_Exp:
615  case armnnSerializer::UnaryOperation::UnaryOperation_Neg:
617  case armnnSerializer::UnaryOperation::UnaryOperation_LogicalNot:
619  case armnnSerializer::UnaryOperation::UnaryOperation_Log:
621  case armnnSerializer::UnaryOperation::UnaryOperation_Sin:
623  default:
624  throw armnn::InvalidArgumentException("Unary operation unknown");
625  }
626 }

References armnn::Abs, armnn::Ceil, armnn::Exp, armnn::Log, armnn::LogicalNot, armnn::Neg, armnn::Rsqrt, armnn::Sin, and armnn::Sqrt.

◆ ToLogicalBinaryOperation()

armnn::LogicalBinaryOperation armnnDeserializer::ToLogicalBinaryOperation ( armnnSerializer::LogicalBinaryOperation  operation)

Definition at line 563 of file Deserializer.cpp.

564 {
565  switch (operation)
566  {
567  case armnnSerializer::LogicalBinaryOperation::LogicalBinaryOperation_LogicalAnd:
569  case armnnSerializer::LogicalBinaryOperation::LogicalBinaryOperation_LogicalOr:
571  default:
572  throw armnn::InvalidArgumentException("Logical Binary operation unknown");
573  }
574 }

References armnn::LogicalAnd, and armnn::LogicalOr.

◆ ToPaddingMode()

armnn::PaddingMode armnnDeserializer::ToPaddingMode ( armnnSerializer::PaddingMode  paddingMode)

Definition at line 628 of file Deserializer.cpp.

629 {
630  switch (paddingMode)
631  {
632  case armnnSerializer::PaddingMode::PaddingMode_Reflect:
634  case armnnSerializer::PaddingMode::PaddingMode_Symmetric:
636  default:
638  }
639 }

References armnn::Constant, armnn::Reflect, and armnn::Symmetric.

◆ ToReduceOperation()

armnn::ReduceOperation armnnDeserializer::ToReduceOperation ( armnnSerializer::ReduceOperation  operation)

Definition at line 544 of file Deserializer.cpp.

545 {
546  switch (operation)
547  {
548  case armnnSerializer::ReduceOperation::ReduceOperation_Sum:
550  case armnnSerializer::ReduceOperation::ReduceOperation_Max:
552  case armnnSerializer::ReduceOperation::ReduceOperation_Mean:
554  case armnnSerializer::ReduceOperation::ReduceOperation_Min:
556  case armnnSerializer::ReduceOperation::ReduceOperation_Prod:
558  default:
560  }
561 }

References armnn::Max, armnn::Mean, armnn::Min, armnn::Prod, and armnn::Sum.

◆ ToResizeMethod()

armnn::ResizeMethod armnnDeserializer::ToResizeMethod ( armnnSerializer::ResizeMethod  method)

Definition at line 641 of file Deserializer.cpp.

642 {
643  switch (method)
644  {
645  case armnnSerializer::ResizeMethod_NearestNeighbor:
647  case armnnSerializer::ResizeMethod_Bilinear:
649  default:
651  }
652 }

References armnn::Bilinear, and armnn::NearestNeighbor.

◆ ToTensorInfo()

armnn::TensorInfo armnnDeserializer::ToTensorInfo ( TensorRawPtr  tensorPtr)

Definition at line 654 of file Deserializer.cpp.

655 {
656  armnn::DataType type;
657  CHECK_TENSOR_PTR(tensorPtr);
658 
659  switch (tensorPtr->dataType())
660  {
661  case DataType_QAsymmS8:
663  break;
664  case DataType_QSymmS8:
666  break;
667  case DataType_QuantisedAsymm8:
668  case DataType_QAsymmU8:
670  break;
671  case DataType_QSymmS16:
672  case DataType_QuantisedSymm16:
674  break;
675  case DataType_Signed32:
677  break;
678  case DataType_Signed64:
680  break;
681  case DataType_Float32:
683  break;
684  case DataType_Float16:
686  break;
687  case DataType_Boolean:
689  break;
690  default:
691  {
692  CheckLocation location = CHECK_LOCATION();
693  throw ParseException(fmt::format("Unsupported data type {0} = {1}. {2}",
694  tensorPtr->dataType(),
695  EnumNameDataType(tensorPtr->dataType()),
696  location.AsString()));
697  }
698  }
699 
700  float quantizationScale = tensorPtr->quantizationScale();
701  int32_t quantizationOffset = tensorPtr->quantizationOffset();
702 
703  if (tensorPtr->dimensionality() == static_cast<unsigned int>(Dimensionality::Scalar))
704  {
706  type,
707  quantizationScale,
708  quantizationOffset);
709  }
710  else if (tensorPtr->dimensionality() == static_cast<unsigned int>(Dimensionality::NotSpecified))
711  {
712  armnn::TensorInfo result(TensorShape{Dimensionality::NotSpecified},
713  type,
714  quantizationScale,
715  quantizationOffset);
716  return result;
717  }
718 
719  auto dimensions = tensorPtr->dimensions();
720  unsigned int size = dimensions->size();
721  std::vector<unsigned int> outputDims(dimensions->begin(), dimensions->begin() + size);
722  bool dimensionsSpecificity[armnn::MaxNumOfTensorDimensions];
723  std::fill_n(dimensionsSpecificity, armnn::MaxNumOfTensorDimensions, true);
724  // For backwards compatibility check if the dimensionSpecificity vector is present first.
725  // The default is to have dimensionSpecificity set to all true's anyway.
726  if (tensorPtr->dimensionSpecificity() != nullptr)
727  {
728  auto dimensionSpecificity = tensorPtr->dimensionSpecificity();
729  size = dimensionSpecificity->size();
730  for (unsigned int i = 0; i < size; ++i)
731  {
732  dimensionsSpecificity[i] = dimensionSpecificity->Get(i);
733  }
734  }
735  // Construct a TensorShape
736  TensorShape shape(size, outputDims.data(), dimensionsSpecificity);
737 
738  auto quantizationScales = tensorPtr->quantizationScales();
739  if (quantizationScales)
740  {
741  unsigned int quantizationScalesSize = quantizationScales->size();
742  std::vector<float> scales(quantizationScales->begin(), quantizationScales->begin() + quantizationScalesSize);
743  unsigned int quantizationDim = tensorPtr->quantizationDim();
744  armnn::TensorInfo result(shape,
745  type,
746  scales,
747  quantizationDim);
748  return result;
749  }
750 
751  // two statements (on purpose) for easier debugging:
752  armnn::TensorInfo result(shape,
753  type,
754  quantizationScale,
755  quantizationOffset);
756 
757  return result;
758 }

References CheckLocation::AsString(), armnn::Boolean, CHECK_LOCATION, CHECK_TENSOR_PTR, armnn::Float16, armnn::Float32, armnn::MaxNumOfTensorDimensions, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, armnn::QSymmS8, armnn::Scalar, armnn::Signed32, and armnn::Signed64.

Referenced by TfLiteParserImpl::GetNetworkInputBindingInfo(), TfLiteParserImpl::GetNetworkOutputBindingInfo(), and ToConstTensor().

armnn::ArgMinMaxFunction::Max
@ Max
armnn::PaddingMode::Symmetric
@ Symmetric
armnn::BinaryOperation::Mul
@ Mul
armnn::DataType::Boolean
@ Boolean
armnn::TensorInfo::GetNumElements
unsigned int GetNumElements() const
Definition: Tensor.hpp:198
armnn::BinaryOperation::Add
@ Add
armnn::ComparisonOperation::LessOrEqual
@ LessOrEqual
armnn::DataLayout::NCDHW
@ NCDHW
armnn::ActivationFunction::LeakyReLu
@ LeakyReLu
armnn::DataLayout::NHWC
@ NHWC
armnn::ActivationFunction::Sqrt
@ Sqrt
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::BinaryOperation::Sub
@ Sub
CHECK_LOCATION
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
armnn::DataType::Float32
@ Float32
armnn::ActivationFunction::TanH
@ TanH
armnn::LogicalBinaryOperation::LogicalOr
@ LogicalOr
CHECK_CONST_TENSOR_PTR
#define CHECK_CONST_TENSOR_PTR(TENSOR_PTR)
Definition: Deserializer.cpp:178
armnn::MaxNumOfTensorDimensions
constexpr unsigned int MaxNumOfTensorDimensions
Definition: Types.hpp:31
armnn::DataType::QAsymmU8
@ QAsymmU8
armnn::ActivationFunction::BoundedReLu
@ BoundedReLu
min(a, max(b, input)) ReLu1 & ReLu6.
armnn::DataType::QSymmS8
@ QSymmS8
armnn::UnaryOperation::Neg
@ Neg
armnn::CheckLocation::AsString
std::string AsString() const
Definition: Exceptions.hpp:29
armnn::ReduceOperation::Mean
@ Mean
armnn::ActivationFunction::HardSwish
@ HardSwish
armnn::DataType::QSymmS16
@ QSymmS16
armnn::ActivationFunction::Gelu
@ Gelu
armnn::ComparisonOperation::NotEqual
@ NotEqual
armnn::ComparisonOperation::GreaterOrEqual
@ GreaterOrEqual
armnn::DataLayout::NDHWC
@ NDHWC
armnn::TensorShape
Definition: Tensor.hpp:20
armnn::BinaryOperation::Maximum
@ Maximum
armnn::DataType::Float16
@ Float16
armnn::CheckLocation
Definition: Exceptions.hpp:14
armnn::BinaryOperation::SqDiff
@ SqDiff
armnn::UnaryOperation::Rsqrt
@ Rsqrt
armnn::TensorShape::GetNumDimensions
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
Definition: Tensor.cpp:174
armnn::ComparisonOperation::Less
@ Less
armnn::UnaryOperation::Sqrt
@ Sqrt
armnn::UnaryOperation::LogicalNot
@ LogicalNot
armnn::UnaryOperation::Exp
@ Exp
armnn::DataType
DataType
Definition: Types.hpp:48
armnn::Dimensionality::Scalar
@ Scalar
armnn::ActivationFunction::Elu
@ Elu
armnn::InvalidArgumentException
Definition: Exceptions.hpp:80
armnn::UnaryOperation::Sin
@ Sin
armnn::ActivationFunction::Linear
@ Linear
CHECK_TENSOR_PTR
#define CHECK_TENSOR_PTR(TENSOR_PTR)
Definition: Deserializer.cpp:172
armnn::ReduceOperation::Sum
@ Sum
armnn::Exception
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
armnn::ResizeMethod::NearestNeighbor
@ NearestNeighbor
armnn::BinaryOperation::Power
@ Power
CHECK_CONST_TENSOR_SIZE
#define CHECK_CONST_TENSOR_SIZE(CONST_TENSOR_SIZE, TENSOR_SIZE)
Definition: Deserializer.cpp:175
armnn::DataType::Signed32
@ Signed32
armnn::UnaryOperation::Ceil
@ Ceil
armnn::ReduceOperation::Prod
@ Prod
armnn::ActivationFunction::Abs
@ Abs
armnn::DataType::QAsymmS8
@ QAsymmS8
armnn::ResizeMethod::Bilinear
@ Bilinear
armnn::ArgMinMaxFunction::Min
@ Min
armnn::UnaryOperation::Log
@ Log
armnn::LogicalBinaryOperation::LogicalAnd
@ LogicalAnd
armnnDeserializer::ToTensorInfo
armnn::TensorInfo ToTensorInfo(TensorRawPtr tensorPtr)
Definition: Deserializer.cpp:654
armnn::ParseException
Definition: Exceptions.hpp:92
armnn::BinaryOperation::Minimum
@ Minimum
armnn::ActivationFunction::ReLu
@ ReLu
armnn::UnaryOperation::Abs
@ Abs
armnn::ReduceOperation::Min
@ Min
armnn::ConstTensor
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
Definition: Tensor.hpp:329
armnn::ActivationFunction::Square
@ Square
armnn::TensorInfo::SetConstant
void SetConstant(const bool IsConstant=true)
Marks the data corresponding to this tensor info as constant.
Definition: Tensor.cpp:514
armnn::BinaryOperation::Div
@ Div
armnn::DataType::Signed64
@ Signed64
armnn::ComparisonOperation::Equal
@ Equal
armnn::PaddingMode::Reflect
@ Reflect
armnn::PaddingMode::Constant
@ Constant
armnn::ReduceOperation::Max
@ Max
armnn::DataLayout::NCHW
@ NCHW
armnn::ActivationFunction::Sigmoid
@ Sigmoid
armnn::ComparisonOperation::Greater
@ Greater