24.08
|
#include <Tensor.hpp>
Public Types | |
using | DifferenceType = std::vector< TensorInfo >::difference_type |
Public Member Functions | |
TensorInfo () | |
Empty (invalid) constructor. More... | |
TensorInfo (const TensorShape &shape, DataType dataType, float quantizationScale=1.0f, int32_t quantizationOffset=0, bool isConstant=false) | |
TensorInfo (unsigned int numDimensions, const unsigned int *dimensionSizes, DataType dataType, float quantizationScale=1.0f, int32_t quantizationOffset=0, bool isConstant=false) | |
TensorInfo (const TensorShape &shape, DataType dataType, const std::vector< float > &quantizationScales, unsigned int quantizationDim, bool isConstant=false) | |
TensorInfo (unsigned int numDimensions, const unsigned int *dimensionSizes, DataType dataType, const std::vector< float > &quantizationScales, unsigned int quantizationDim, bool isConstant=false) | |
TensorInfo (const TensorInfo &other) | |
TensorInfo & | operator= (const TensorInfo &other) |
bool | operator== (const TensorInfo &other) const |
bool | operator!= (const TensorInfo &other) const |
const TensorShape & | GetShape () const |
TensorShape & | GetShape () |
void | SetShape (const TensorShape &newShape) |
unsigned int | GetNumDimensions () const |
unsigned int | GetNumElements () const |
DataType | GetDataType () const |
void | SetDataType (DataType type) |
bool | HasMultipleQuantizationScales () const |
bool | HasPerAxisQuantization () const |
std::vector< float > | GetQuantizationScales () const |
void | SetQuantizationScales (const std::vector< float > &scales) |
float | GetQuantizationScale () const |
void | SetQuantizationScale (float scale) |
int32_t | GetQuantizationOffset () const |
void | SetQuantizationOffset (int32_t offset) |
Optional< unsigned int > | GetQuantizationDim () const |
void | SetQuantizationDim (const Optional< unsigned int > &quantizationDim) |
bool | IsQuantized () const |
bool | IsConstant () const |
void | SetConstant (const bool IsConstant=true) |
Marks the data corresponding to this tensor info as constant. More... | |
bool | IsTypeSpaceMatch (const TensorInfo &other) const |
Check that the types are the same and, if quantize, that the quantization parameters are the same. More... | |
unsigned int | GetNumBytes () const |
Definition at line 152 of file Tensor.hpp.
using DifferenceType = std::vector<TensorInfo>::difference_type |
Definition at line 191 of file Tensor.hpp.
TensorInfo | ( | ) |
TensorInfo | ( | const TensorShape & | shape, |
DataType | dataType, | ||
float | quantizationScale = 1.0f , |
||
int32_t | quantizationOffset = 0 , |
||
bool | isConstant = false |
||
) |
Definition at line 346 of file Tensor.cpp.
References TensorInfo::SetQuantizationOffset(), and TensorInfo::SetQuantizationScale().
TensorInfo | ( | unsigned int | numDimensions, |
const unsigned int * | dimensionSizes, | ||
DataType | dataType, | ||
float | quantizationScale = 1.0f , |
||
int32_t | quantizationOffset = 0 , |
||
bool | isConstant = false |
||
) |
Definition at line 359 of file Tensor.cpp.
References TensorInfo::SetQuantizationOffset(), and TensorInfo::SetQuantizationScale().
TensorInfo | ( | const TensorShape & | shape, |
DataType | dataType, | ||
const std::vector< float > & | quantizationScales, | ||
unsigned int | quantizationDim, | ||
bool | isConstant = false |
||
) |
Definition at line 371 of file Tensor.cpp.
References TensorInfo::SetQuantizationDim(), and TensorInfo::SetQuantizationScales().
TensorInfo | ( | unsigned int | numDimensions, |
const unsigned int * | dimensionSizes, | ||
DataType | dataType, | ||
const std::vector< float > & | quantizationScales, | ||
unsigned int | quantizationDim, | ||
bool | isConstant = false |
||
) |
Definition at line 384 of file Tensor.cpp.
References TensorInfo::SetQuantizationDim(), and TensorInfo::SetQuantizationScales().
TensorInfo | ( | const TensorInfo & | other | ) |
Definition at line 398 of file Tensor.cpp.
|
inline |
Definition at line 200 of file Tensor.hpp.
Referenced by BiasAndWeightsTypesMatch::BiasAndWeightsTypesMatch(), armnnUtils::CalculateReducedOutputTensoInfo(), armnnUtils::CalculateStridedSliceOutputTensorInfo(), TosaRefTensorHandle::CanBeImported(), RefTensorHandle::CanBeImported(), armnn::ClConvertFp16ToFp32WorkloadValidate(), armnn::ClConvertFp32ToFp16WorkloadValidate(), ConvertQuantizeToTosaOperator(), ConvertSoftmaxToTosaOperator(), armnn_driver::ConvertToLayerInputHandle(), Layer::GetDataType(), BaseTensor< void * >::GetDataType(), armnn::GetLayerInOutDatatype(), armnn::optimizations::pad_fold::GetLowestElement(), armnn::GetUnpaddedTensorStrides(), armnn::InitializeArmComputeTensorData(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), SampleDynamicLayerSupport::IsAdditionSupported(), RefLayerSupport::IsConvertFp16ToFp32Supported(), RefLayerSupport::IsConvertFp32ToFp16Supported(), RefLayerSupport::IsConvolution2dSupported(), RefLayerSupport::IsConvolution3dSupported(), RefLayerSupport::IsDepthwiseConvolutionSupported(), NeonLayerSupport::IsFloorSupported(), NeonLayerSupport::IsQLstmSupported(), ClLayerSupport::IsQLstmSupported(), RefLayerSupport::IsTransposeConvolution2dSupported(), NeonLayerSupport::IsUnidirectionalSequenceLstmSupported(), armnn::LstmImpl(), armnn::Pad(), armnn::PermuteTensor(), ConvertFp32NetworkToFp16Impl::Run(), armnn_driver::SwizzleAndroidNn4dTensorToArmNn(), armnnUtils::ToFloatArray(), ArgMinMaxQueueDescriptor::Validate(), FullyConnectedQueueDescriptor::Validate(), Convolution2dQueueDescriptor::Validate(), Convolution3dQueueDescriptor::Validate(), DepthwiseConvolution2dQueueDescriptor::Validate(), QuantizeQueueDescriptor::Validate(), EqualQueueDescriptor::Validate(), ConvertFp16ToFp32QueueDescriptor::Validate(), ConvertFp32ToFp16QueueDescriptor::Validate(), GreaterQueueDescriptor::Validate(), GatherNdQueueDescriptor::Validate(), GatherQueueDescriptor::Validate(), TransposeConvolution2dQueueDescriptor::Validate(), ComparisonQueueDescriptor::Validate(), and LogicalBinaryQueueDescriptor::Validate().
unsigned int GetNumBytes | ( | ) | const |
Definition at line 427 of file Tensor.cpp.
References armnn::GetDataTypeSize(), and TensorInfo::GetNumElements().
Referenced by TosaRefTensorHandle::Allocate(), SampleTensorHandle::Allocate(), RefTensorHandle::Allocate(), ConstTensorPin::ConstTensorPin(), armnnOnnxParser::CreateConstTensorImpl(), ArmnnPreparedModel::ExecuteWithDummyInputs(), BaseTensor< void * >::GetNumBytes(), TosaRefTensorHandle::Manage(), SampleTensorHandle::Manage(), RefTensorHandle::Manage(), armnn::PermuteTensor(), armnn::ReorderWeightChannelsForAcl(), and ScopedTensorHandle::ScopedTensorHandle().
|
inline |
Definition at line 197 of file Tensor.hpp.
References TensorShape::GetNumDimensions().
Referenced by armnn::ArgMinMax(), armnn::BatchToSpaceNd(), armnn::BuildAddMulAddTensorInfoLists(), armnn::CalculateGatherNdKeyIndices(), armnnUtils::CalculateReducedOutputTensoInfo(), armnnUtils::CalculateStridedSliceOutputTensorInfo(), armnn::CollapseLeadingUnitDimensions(), armnn::ComputeAclAxis(), armnn::ComputeReductionTensorShape(), armnn::ComputeSoftmaxAclAxis(), armnn::Concatenate(), armnn::ConnectedToLayerType(), armnn_driver::ConvertReduce(), ConvertSoftmaxToTosaOperator(), armnn::Gather(), armnn::GetNumActivations(), BaseTensor< void * >::GetNumDimensions(), armnn_driver::IsDynamicTensor(), RefLayerSupport::IsMeanSupported(), armnn::LogSoftmax(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnn::PrintOutput(), armnnUtils::ProcessConcatInputTensorInfo(), armnn::Reduce(), armnn::ReverseV2(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), AddBroadcastReshapeLayerImpl::Run(), armnn::ScatterNd(), armnn::Softmax(), armnn::SpaceToBatchNd(), armnn::Split(), armnn::Splitter(), armnn::Stack(), armnn_driver::SwizzleAndroidNn4dTensorToArmNn(), armnn::Tile(), FullyConnectedQueueDescriptor::Validate(), MeanQueueDescriptor::Validate(), PadQueueDescriptor::Validate(), InstanceNormalizationQueueDescriptor::Validate(), L2NormalizationQueueDescriptor::Validate(), SpaceToBatchNdQueueDescriptor::Validate(), StridedSliceQueueDescriptor::Validate(), GatherNdQueueDescriptor::Validate(), GatherQueueDescriptor::Validate(), SliceQueueDescriptor::Validate(), BatchMatMulQueueDescriptor::Validate(), ReverseV2QueueDescriptor::Validate(), TileQueueDescriptor::Validate(), QueueDescriptor::ValidateTensorNumDimensions(), ScatterNdLayer::ValidateTensorShapesFromInputs(), and ReduceLayer::ValidateTensorShapesFromInputs().
|
inline |
Definition at line 198 of file Tensor.hpp.
References TensorShape::GetNumElements().
Referenced by armnn::Activation(), armnnUtils::CheckSizes(), armnn::Concatenate(), armnnOnnxParser::CreateConstTensorImpl(), armnn::Dequantize(), armnn::DetectionPostProcess(), armnn::Gather(), TensorInfo::GetNumBytes(), BaseTensor< void * >::GetNumElements(), armnn::MirrorPad(), IDeserializer::DeserializerImpl::OutputShapeOfReshape(), TfLiteParserImpl::OutputShapeOfReshape(), armnn::Pad(), armnn::PrintOutput(), armnn::Reduce(), armnn::ReverseV2(), armnn::ScatterNd(), ShapesAreSameTotalSize::ShapesAreSameTotalSize(), armnn::Split(), armnn::Splitter(), armnn::Stack(), armnn::Tile(), armnnDeserializer::ToConstTensor(), armnnUtils::ToFloatArray(), and SpaceToBatchNdQueueDescriptor::Validate().
Optional< unsigned int > GetQuantizationDim | ( | ) | const |
Definition at line 498 of file Tensor.cpp.
Referenced by armnnUtils::ToFloatArray().
int32_t GetQuantizationOffset | ( | ) | const |
Definition at line 482 of file Tensor.cpp.
Referenced by ConvertQuantizeToTosaOperator(), ConvertSoftmaxToTosaOperator(), armnn::optimizations::pad_fold::GetLowestElement(), armnn::optimizations::pad_fold::GetZeroElement(), TensorInfo::IsTypeSpaceMatch(), QuantizationParametersAreEqual::QuantizationParametersAreEqual(), armnnUtils::ToFloatArray(), and QLstmQueueDescriptor::Validate().
float GetQuantizationScale | ( | ) | const |
Definition at line 461 of file Tensor.cpp.
References TensorInfo::HasMultipleQuantizationScales().
Referenced by ConvertQuantizeToTosaOperator(), ConvertSoftmaxToTosaOperator(), armnn::optimizations::pad_fold::GetLowestElement(), TensorInfo::IsTypeSpaceMatch(), QuantizationParametersAreEqual::QuantizationParametersAreEqual(), armnnUtils::ToFloatArray(), and QLstmQueueDescriptor::Validate().
std::vector< float > GetQuantizationScales | ( | ) | const |
Definition at line 451 of file Tensor.cpp.
Referenced by armnnUtils::ToFloatArray().
|
inline |
Definition at line 194 of file Tensor.hpp.
|
inline |
Definition at line 193 of file Tensor.hpp.
Referenced by armnn::ArgMinMax(), BatchMatMul::BatchMatMul(), armnn::BatchNormImpl(), armnn::BatchToSpaceNd(), armnn::CalculateGatherNdKeyIndices(), armnnUtils::CalculateReducedOutputTensoInfo(), armnnUtils::CalculateStridedSliceOutputTensorInfo(), armnn::ClUnidirectionalSequenceLstmFloatWorkloadValidate(), armnn::CollapseLeadingUnitDimensions(), armnn::Concatenate(), armnn::Convert1HWOTensorInfoToAcl(), armnn::Convert1HWOTensorToAcl(), armnn::Convert1HWOtoMIHW(), ConvertConstantToTosaOperator(), armnn_driver::ConvertPooling2d(), ConvertQuantizeToTosaOperator(), ConvertSoftmaxToTosaOperator(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnn::CreateAclNormalizationLayerInfoForL2Normalization(), armnnOnnxParser::CreateConstTensorImpl(), armnn::DepthToSpace(), armnn::DetectionPostProcess(), armnn::ExecuteFunction(), armnn::Gather(), armnn::GetNumActivations(), TosaRefTensorHandle::GetShape(), SampleTensorHandle::GetShape(), RefTensorHandle::GetShape(), ConstTensorHandle::GetShape(), RefTensorHandleDecorator::GetShape(), BaseTensor< void * >::GetShape(), armnn::GetUnpaddedTensorStrides(), armnn::InstanceNorm(), armnn_driver::IsDynamicTensor(), NeonLayerSupport::IsSplitterSupported(), ClLayerSupport::IsSplitterSupported(), armnn::LogSoftmax(), armnn::LstmImpl(), armnn::MirrorPad(), armnn::NeonUnidirectionalSequenceLstmFloatWorkloadValidate(), armnn::NeonUnidirectionalSequenceLstmWorkloadValidate(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnn::Pad(), armnn::PermuteTensor(), armnn::Pooling2d(), armnn::Pooling3d(), armnn::PreluImpl(), armnn::PrintOutput(), armnnUtils::ProcessConcatInputTensorInfo(), armnn::Reduce(), armnnUtils::ReduceDims(), RefTransposeConvolution2dWorkload::RefTransposeConvolution2dWorkload(), armnn::ReshapeWeightsForAcl(), armnn::Resize(), armnn::ReverseV2(), PermuteAsReshapeImpl::Run(), TransposeAsReshapeImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), AddBroadcastReshapeLayerImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), armnn::ScatterNd(), Convolution3dLayer::SerializeLayerParameters(), DepthwiseConvolution2dLayer::SerializeLayerParameters(), Convolution2dLayer::SerializeLayerParameters(), Graph::SerializeToDot(), ShapesAreBroadcastCompatible::ShapesAreBroadcastCompatible(), ShapesAreSameRank::ShapesAreSameRank(), armnn::Slice(), armnn::Softmax(), armnn::SpaceToBatchNd(), armnn::SpaceToDepth(), armnn::Split(), armnn::Splitter(), armnn::Stack(), armnn::StridedSlice(), armnn_driver::SwizzleAndroidNn4dTensorToArmNn(), armnn::Tile(), armnnUtils::ToFloatArray(), ArgMinMaxQueueDescriptor::Validate(), PermuteQueueDescriptor::Validate(), DepthwiseConvolution2dQueueDescriptor::Validate(), DetectionPostProcessQueueDescriptor::Validate(), ResizeQueueDescriptor::Validate(), SpaceToBatchNdQueueDescriptor::Validate(), SpaceToDepthQueueDescriptor::Validate(), BatchToSpaceNdQueueDescriptor::Validate(), TransposeQueueDescriptor::Validate(), QLstmQueueDescriptor::Validate(), QuantizedLstmQueueDescriptor::Validate(), SliceQueueDescriptor::Validate(), DepthToSpaceQueueDescriptor::Validate(), BatchMatMulQueueDescriptor::Validate(), QueueDescriptor::ValidateTensorNumDimensions(), OutputSlot::ValidateTensorShape(), ElementwiseBaseLayer::ValidateTensorShapesFromInputs(), QuantizeLayer::ValidateTensorShapesFromInputs(), ChannelShuffleLayer::ValidateTensorShapesFromInputs(), ActivationLayer::ValidateTensorShapesFromInputs(), FillLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs(), RankLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), ShapeLayer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), Pooling3dLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), SliceLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), BroadcastToLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), Convolution3dLayer::ValidateTensorShapesFromInputs(), ScatterNdLayer::ValidateTensorShapesFromInputs(), GatherNdLayer::ValidateTensorShapesFromInputs(), ElementwiseBinaryLayer::ValidateTensorShapesFromInputs(), TileLayer::ValidateTensorShapesFromInputs(), BatchMatMulLayer::ValidateTensorShapesFromInputs(), ReduceLayer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), GatherLayer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), ReverseV2Layer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), SplitterLayer::ValidateTensorShapesFromInputs(), ConcatLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().
|
inline |
Definition at line 203 of file Tensor.hpp.
Referenced by TensorInfo::GetQuantizationScale(), TensorInfo::HasPerAxisQuantization(), and TensorInfo::IsTypeSpaceMatch().
bool HasPerAxisQuantization | ( | ) | const |
Definition at line 446 of file Tensor.cpp.
References TensorInfo::HasMultipleQuantizationScales().
Referenced by armnn::Convert1HWOtoMIHW(), and armnnUtils::ToFloatArray().
bool IsConstant | ( | ) | const |
Definition at line 513 of file Tensor.cpp.
Referenced by NeonFullyConnectedWorkload::Execute(), LayerWithParameters< StridedSliceDescriptor >::GetConnectedConstantAsInputTensors(), LayerSupportHandle::IsConvolution2dSupported(), LayerSupportHandle::IsDepthwiseConvolutionSupported(), LayerSupportHandle::IsDilatedDepthwiseConvolutionSupported(), LayerSupportHandle::IsFullyConnectedSupported(), NeonFullyConnectedWorkload::NeonFullyConnectedWorkload(), and TensorInfo::SetConstant().
bool IsQuantized | ( | ) | const |
Definition at line 508 of file Tensor.cpp.
References armnn::IsQuantizedType().
Referenced by armnn::optimizations::pad_fold::GetZeroElement(), TensorInfo::IsTypeSpaceMatch(), armnn::Pad(), and armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d().
bool IsTypeSpaceMatch | ( | const TensorInfo & | other | ) | const |
Check that the types are the same and, if quantize, that the quantization parameters are the same.
Definition at line 432 of file Tensor.cpp.
References TensorInfo::GetQuantizationOffset(), TensorInfo::GetQuantizationScale(), TensorInfo::HasMultipleQuantizationScales(), and TensorInfo::IsQuantized().
Referenced by ClLayerSupport::IsConcatSupported(), NeonLayerSupport::IsConcatSupported(), NeonLayerSupport::IsSplitterSupported(), and ClLayerSupport::IsSplitterSupported().
bool operator!= | ( | const TensorInfo & | other | ) | const |
Definition at line 422 of file Tensor.cpp.
TensorInfo & operator= | ( | const TensorInfo & | other | ) |
Definition at line 405 of file Tensor.cpp.
bool operator== | ( | const TensorInfo & | other | ) | const |
Definition at line 414 of file Tensor.cpp.
void SetConstant | ( | const bool | IsConstant = true | ) |
Marks the data corresponding to this tensor info as constant.
: This can allow further optimization on execution @Note: The user has to ensure that the underlying data actually is constant.
Definition at line 518 of file Tensor.cpp.
References TensorInfo::IsConstant().
Referenced by ConstTensor::ConstTensor(), armnn_driver::ConvertOperandToConstTensorPin(), ArmnnPreparedModel::ExecuteWithDummyInputs(), TfLiteParserImpl::GetNetworkInputBindingInfo(), armnnUtils::MakeInputTensors(), armnn::PermuteTensor(), and armnnDeserializer::ToConstTensor().
|
inline |
Definition at line 201 of file Tensor.hpp.
Referenced by armnn::AttemptBackendAssignment(), armnn_driver::ConvertOperandToConstTensorPin(), ConvertToDataType(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), and ConvertFp32NetworkToFp16Impl::Run().
void SetQuantizationDim | ( | const Optional< unsigned int > & | quantizationDim | ) |
Definition at line 503 of file Tensor.cpp.
Referenced by armnnUtils::Permuted(), and TensorInfo::TensorInfo().
void SetQuantizationOffset | ( | int32_t | offset | ) |
Definition at line 493 of file Tensor.cpp.
Referenced by TensorInfo::TensorInfo().
void SetQuantizationScale | ( | float | scale | ) |
Definition at line 477 of file Tensor.cpp.
Referenced by TensorInfo::TensorInfo().
void SetQuantizationScales | ( | const std::vector< float > & | scales | ) |
Definition at line 456 of file Tensor.cpp.
Referenced by TensorInfo::TensorInfo().
|
inline |
Definition at line 195 of file Tensor.hpp.
Referenced by ClGatherNdWorkload::ClGatherNdWorkload(), armnn::ClGatherNdWorkloadValidate(), armnn::CollapseLeadingUnitDimensions(), armnn::Convert1HWOtoMIHW(), armnn_driver::ConvertOperandToConstTensorPin(), NeonGatherNdWorkload::NeonGatherNdWorkload(), armnn::NeonGatherNdWorkloadValidate(), IDeserializer::DeserializerImpl::OutputShapeOfReshape(), TfLiteParserImpl::OutputShapeOfReshape(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnnUtils::Permuted(), armnnUtils::ReduceDims(), armnn::RemoveReshapeLayer(), armnn::ReshapeWeightsForAcl(), AddBroadcastReshapeLayerImpl::Run(), and armnnUtils::TransposeTensorShape().