22.11
|
#include <Converter.hpp>
Public Types | |
using | Model = ::android::nn::Model |
using | Operand = ::android::nn::Operand |
using | OperandLifeTime = ::android::nn::Operand::LifeTime |
using | OperandType = ::android::nn::OperandType |
using | Operation = ::android::nn::Operation |
using | OperationType = ::android::nn::OperationType |
using | ErrorStatus = ::android::nn::ErrorStatus |
Static Public Member Functions | |
static bool | ConvertOperation (const Operation &operation, const Model &model, ConversionData &data) |
Definition at line 20 of file Converter.hpp.
using ErrorStatus = ::android::nn::ErrorStatus |
Definition at line 30 of file Converter.hpp.
using Model = ::android::nn::Model |
Definition at line 24 of file Converter.hpp.
using Operand = ::android::nn::Operand |
Definition at line 25 of file Converter.hpp.
using OperandLifeTime = ::android::nn::Operand::LifeTime |
Definition at line 26 of file Converter.hpp.
using OperandType = ::android::nn::OperandType |
Definition at line 27 of file Converter.hpp.
using Operation = ::android::nn::Operation |
Definition at line 28 of file Converter.hpp.
using OperationType = ::android::nn::OperationType |
Definition at line 29 of file Converter.hpp.
|
static |
Definition at line 21 of file Converter.cpp.
References armnn::Across, armnn_driver::AreDynamicTensorsSupported(), ARMNN_ASSERT, armnn::BoundedReLu, Connect(), IOutputSlot::Connect(), LayerInputHandle::Connect(), armnn_driver::ConvertOperationInputToConstTensorPin(), armnn_driver::ConvertPaddings(), armnn_driver::ConvertPooling2d(), armnn_driver::ConvertReduce(), armnn_driver::ConvertToActivation(), armnn_driver::ConvertToLayerInputHandle(), armnn::CreateDescriptorForConcatenation(), armnn_driver::DequantizeAndMakeConstTensorPin(), armnn::error, armnnUtils::ExpandDims(), FORWARD_LAYER_SUPPORT_FUNC, armnn_driver::g_DontPermute, armnn::GetArgMinMaxFunctionAsCString(), DataLayoutIndexed::GetChannelsIndex(), armnn::GetComparisonOperationAsCString(), ConstTensorPin::GetConstTensor(), ConstTensorPin::GetConstTensorPtr(), TensorInfo::GetDataType(), armnn::GetDataTypeSize(), DataLayoutIndexed::GetHeightIndex(), BaseTensor< MemoryType >::GetInfo(), armnn_driver::GetInputActivationFunction(), armnn_driver::GetInputActivationFunctionFromTensor(), armnn_driver::GetInputFloat32(), armnn_driver::GetInputInt32(), armnn_driver::GetInputOperand(), armnn_driver::GetInputPaddingScheme(), armnn_driver::GetInputScalar(), IConnectableLayer::GetInputSlot(), armnn::GetLogicalBinaryOperationAsCString(), BaseTensor< MemoryType >::GetMemoryArea(), TensorShape::GetNumDimensions(), TensorInfo::GetNumDimensions(), TensorShape::GetNumElements(), IConnectableLayer::GetNumInputSlots(), IConnectableLayer::GetNumOutputSlots(), armnn_driver::GetOperandType(), armnn_driver::GetOptionalBool(), armnn_driver::GetOptionalConvolutionDilationParams(), armnn_driver::GetOptionalInputActivation(), armnn_driver::GetOutputOperand(), LayerInputHandle::GetOutputSlot(), IConnectableLayer::GetOutputSlot(), TensorInfo::GetQuantizationDim(), TensorInfo::GetQuantizationOffset(), TensorInfo::GetQuantizationScale(), TensorInfo::GetQuantizationScales(), armnn::GetResizeMethodAsCString(), TensorInfo::GetShape(), BaseTensor< MemoryType >::GetShape(), IOutputSlot::GetTensorInfo(), LayerInputHandle::GetTensorInfo(), armnn_driver::GetTensorInfoForOperand(), armnn_driver::GetTensorInt32Values(), armnn::GetUnaryOperationAsCString(), DataLayoutIndexed::GetWidthIndex(), OptionalBase::has_value(), TensorInfo::HasPerAxisQuantization(), armnn::IsActivationSupported(), armnn::IsAdditionSupported(), armnn::IsBatchToSpaceNdSupported(), armnn::IsConcatSupported(), armnn_driver::IsConnectedToDequantize(), armnn::IsConvolution2dSupported(), armnn::IsDepthwiseConvolutionSupported(), armnn::IsDequantizeSupported(), armnn::IsDivisionSupported(), armnn_driver::IsDynamicTensor(), armnn::IsFloorSupported(), armnn::IsFullyConnectedSupported(), armnn::IsL2NormalizationSupported(), armnn::IsLstmSupported(), armnn::IsMaximumSupported(), armnn::IsMeanSupported(), armnn::IsMinimumSupported(), armnn::IsMultiplicationSupported(), armnn::IsNormalizationSupported(), armnn_driver::IsOperandConstant(), ConstTensorPin::IsOptional(), armnn::IsPadSupported(), armnn::IsPreluSupported(), armnn::IsQuantizedLstmSupported(), armnn_driver::isQuantizedOperand(), armnn::IsReshapeSupported(), armnn::IsResizeSupported(), armnn::IsSoftmaxSupported(), armnn::IsSpaceToBatchNdSupported(), armnn::IsSpaceToDepthSupported(), armnn::IsSplitterSupported(), armnn::IsStridedSliceSupported(), armnn::IsSubtractionSupported(), IOutputSlot::IsTensorInfoSet(), armnn::IsTransposeConvolution2dSupported(), LayerInputHandle::IsValid(), ConstTensorPin::IsValid(), armnn_driver::IsWeightsValid(), armnn::LocalBrightness, ActivationDescriptor::m_A, LstmDescriptor::m_ActivationFunc, ResizeDescriptor::m_AlignCorners, NormalizationDescriptor::m_Alpha, ArgMinMaxDescriptor::m_Axis, SoftmaxDescriptor::m_Axis, GatherDescriptor::m_Axis, MeanDescriptor::m_Axis, ActivationDescriptor::m_B, ConversionData::m_Backends, StridedSliceDescriptor::m_Begin, StridedSliceDescriptor::m_BeginMask, SoftmaxDescriptor::m_Beta, NormalizationDescriptor::m_Beta, InstanceNormalizationDescriptor::m_Beta, FullyConnectedDescriptor::m_BiasEnabled, Convolution2dDescriptor::m_BiasEnabled, DepthwiseConvolution2dDescriptor::m_BiasEnabled, TransposeConvolution2dDescriptor::m_BiasEnabled, BatchToSpaceNdDescriptor::m_BlockShape, SpaceToBatchNdDescriptor::m_BlockShape, SpaceToDepthDescriptor::m_BlockSize, QuantizedLstmInputParams::m_CellBias, LstmInputParams::m_CellBias, LstmInputParamsInfo::m_CellBias, QuantizedLstmInputParamsInfo::m_CellBias, QLstmDescriptor::m_CellClip, QLstmDescriptor::m_CellIntermediateScale, LstmInputParams::m_CellLayerNormWeights, LstmInputParamsInfo::m_CellLayerNormWeights, LstmInputParams::m_CellToForgetWeights, LstmInputParamsInfo::m_CellToForgetWeights, LstmInputParams::m_CellToInputWeights, LstmInputParamsInfo::m_CellToInputWeights, LstmInputParams::m_CellToOutputWeights, LstmInputParamsInfo::m_CellToOutputWeights, LstmDescriptor::m_CifgEnabled, QLstmDescriptor::m_CifgEnabled, LstmDescriptor::m_ClippingThresCell, LstmDescriptor::m_ClippingThresProj, FullyConnectedDescriptor::m_ConstantWeights, BatchToSpaceNdDescriptor::m_Crops, Convolution2dDescriptor::m_DataLayout, DepthwiseConvolution2dDescriptor::m_DataLayout, NormalizationDescriptor::m_DataLayout, L2NormalizationDescriptor::m_DataLayout, InstanceNormalizationDescriptor::m_DataLayout, BatchToSpaceNdDescriptor::m_DataLayout, ResizeDescriptor::m_DataLayout, SpaceToBatchNdDescriptor::m_DataLayout, SpaceToDepthDescriptor::m_DataLayout, StridedSliceDescriptor::m_DataLayout, TransposeConvolution2dDescriptor::m_DataLayout, Convolution2dDescriptor::m_DilationX, DepthwiseConvolution2dDescriptor::m_DilationX, Convolution2dDescriptor::m_DilationY, DepthwiseConvolution2dDescriptor::m_DilationY, TransposeDescriptor::m_DimMappings, StridedSliceDescriptor::m_End, StridedSliceDescriptor::m_EndMask, InstanceNormalizationDescriptor::m_Eps, QuantizedLstmInputParams::m_ForgetGateBias, LstmInputParams::m_ForgetGateBias, LstmInputParamsInfo::m_ForgetGateBias, QuantizedLstmInputParamsInfo::m_ForgetGateBias, QLstmDescriptor::m_ForgetIntermediateScale, LstmInputParams::m_ForgetLayerNormWeights, LstmInputParamsInfo::m_ForgetLayerNormWeights, ActivationDescriptor::m_Function, ArgMinMaxDescriptor::m_Function, InstanceNormalizationDescriptor::m_Gamma, ResizeDescriptor::m_HalfPixelCenters, QLstmDescriptor::m_HiddenStateScale, QLstmDescriptor::m_HiddenStateZeroPoint, QuantizedLstmInputParams::m_InputGateBias, LstmInputParams::m_InputGateBias, LstmInputParamsInfo::m_InputGateBias, QuantizedLstmInputParamsInfo::m_InputGateBias, QLstmDescriptor::m_InputIntermediateScale, LstmInputParams::m_InputLayerNormWeights, LstmInputParamsInfo::m_InputLayerNormWeights, QuantizedLstmInputParams::m_InputToCellWeights, LstmInputParams::m_InputToCellWeights, LstmInputParamsInfo::m_InputToCellWeights, QuantizedLstmInputParamsInfo::m_InputToCellWeights, QuantizedLstmInputParams::m_InputToForgetWeights, LstmInputParams::m_InputToForgetWeights, LstmInputParamsInfo::m_InputToForgetWeights, QuantizedLstmInputParamsInfo::m_InputToForgetWeights, QuantizedLstmInputParams::m_InputToInputWeights, LstmInputParams::m_InputToInputWeights, LstmInputParamsInfo::m_InputToInputWeights, QuantizedLstmInputParamsInfo::m_InputToInputWeights, QuantizedLstmInputParams::m_InputToOutputWeights, LstmInputParams::m_InputToOutputWeights, LstmInputParamsInfo::m_InputToOutputWeights, QuantizedLstmInputParamsInfo::m_InputToOutputWeights, NormalizationDescriptor::m_K, MeanDescriptor::m_KeepDims, LstmDescriptor::m_LayerNormEnabled, QLstmDescriptor::m_LayerNormEnabled, ResizeDescriptor::m_Method, ConversionData::m_Network, NormalizationDescriptor::m_NormChannelType, NormalizationDescriptor::m_NormMethodType, NormalizationDescriptor::m_NormSize, QuantizedLstmInputParams::m_OutputGateBias, LstmInputParams::m_OutputGateBias, LstmInputParamsInfo::m_OutputGateBias, QuantizedLstmInputParamsInfo::m_OutputGateBias, QLstmDescriptor::m_OutputIntermediateScale, LstmInputParams::m_OutputLayerNormWeights, LstmInputParamsInfo::m_OutputLayerNormWeights, TransposeConvolution2dDescriptor::m_OutputShape, TransposeConvolution2dDescriptor::m_OutputShapeEnabled, Convolution2dDescriptor::m_PadBottom, DepthwiseConvolution2dDescriptor::m_PadBottom, TransposeConvolution2dDescriptor::m_PadBottom, Convolution2dDescriptor::m_PadLeft, DepthwiseConvolution2dDescriptor::m_PadLeft, TransposeConvolution2dDescriptor::m_PadLeft, SpaceToBatchNdDescriptor::m_PadList, Convolution2dDescriptor::m_PadRight, DepthwiseConvolution2dDescriptor::m_PadRight, TransposeConvolution2dDescriptor::m_PadRight, Convolution2dDescriptor::m_PadTop, DepthwiseConvolution2dDescriptor::m_PadTop, TransposeConvolution2dDescriptor::m_PadTop, PadDescriptor::m_PadValue, LstmDescriptor::m_PeepholeEnabled, QLstmDescriptor::m_PeepholeEnabled, LstmInputParams::m_ProjectionBias, LstmInputParamsInfo::m_ProjectionBias, QLstmDescriptor::m_ProjectionClip, LstmDescriptor::m_ProjectionEnabled, QLstmDescriptor::m_ProjectionEnabled, LstmInputParams::m_ProjectionWeights, LstmInputParamsInfo::m_ProjectionWeights, QuantizedLstmInputParams::m_RecurrentToCellWeights, LstmInputParams::m_RecurrentToCellWeights, LstmInputParamsInfo::m_RecurrentToCellWeights, QuantizedLstmInputParamsInfo::m_RecurrentToCellWeights, QuantizedLstmInputParams::m_RecurrentToForgetWeights, LstmInputParams::m_RecurrentToForgetWeights, LstmInputParamsInfo::m_RecurrentToForgetWeights, QuantizedLstmInputParamsInfo::m_RecurrentToForgetWeights, QuantizedLstmInputParams::m_RecurrentToInputWeights, LstmInputParams::m_RecurrentToInputWeights, LstmInputParamsInfo::m_RecurrentToInputWeights, QuantizedLstmInputParamsInfo::m_RecurrentToInputWeights, QuantizedLstmInputParams::m_RecurrentToOutputWeights, LstmInputParams::m_RecurrentToOutputWeights, LstmInputParamsInfo::m_RecurrentToOutputWeights, QuantizedLstmInputParamsInfo::m_RecurrentToOutputWeights, StridedSliceDescriptor::m_ShrinkAxisMask, StridedSliceDescriptor::m_Stride, Convolution2dDescriptor::m_StrideX, DepthwiseConvolution2dDescriptor::m_StrideX, TransposeConvolution2dDescriptor::m_StrideX, Convolution2dDescriptor::m_StrideY, DepthwiseConvolution2dDescriptor::m_StrideY, TransposeConvolution2dDescriptor::m_StrideY, ResizeDescriptor::m_TargetHeight, ReshapeDescriptor::m_TargetShape, ResizeDescriptor::m_TargetWidth, FullyConnectedDescriptor::m_TransposeWeightMatrix, BatchMatMulDescriptor::m_TransposeX, BatchMatMulDescriptor::m_TransposeY, FillDescriptor::m_Value, armnn::Max, armnn::Min, armnn::NHWC, armnn::numeric_cast(), armnn_driver::OptionalDataLayout(), armnn::QAsymmS8, armnn::QAsymmU8, armnn::ReLu, LayerInputHandle::SanitizeQuantizationScale(), OriginsDescriptor::SetConcatAxis(), TensorInfo::SetQuantizationOffset(), TensorInfo::SetQuantizationScale(), TensorInfo::SetQuantizationScales(), TensorInfo::SetShape(), IOutputSlot::SetTensorInfo(), armnn_driver::SetupAndTrackLayerOutputSlot(), OriginsDescriptor::SetViewOriginCoord(), ViewsDescriptor::SetViewOriginCoord(), ViewsDescriptor::SetViewSize(), armnn::Shape, armnn::Sigmoid, armnn::Sum, armnn::TanH, armnnUtils::TransposeTensorShape(), and OptionalReferenceSwitch< IsReference, T >::value().
Referenced by ModelToINetworkTransformer::ModelToINetworkTransformer().