23.05
|
Go to the documentation of this file.
311 using ArrayType = std::array<ValueType, MaxNumOfTensorDimensions>;
344 +
" at location [" + std::to_string(i) +
"].");
346 return m_DimMappings.at(i);
360 if (m_NumDimMappings != other.m_NumDimMappings)
return false;
361 for (
unsigned int i = 0; i < m_NumDimMappings; ++i)
363 if (m_DimMappings[i] != other.m_DimMappings[i])
return false;
373 isInverse = (m_DimMappings[other.m_DimMappings[i]] == i);
400 #define LIST_OF_LAYER_TYPE \
404 X(BatchNormalization) \
409 X(ConvertFp16ToFp32) \
410 X(ConvertFp32ToFp16) \
414 X(DepthwiseConvolution2d) \
416 X(DetectionPostProcess) \
418 X(ElementwiseUnary) \
419 X(FakeQuantization) \
425 X(InstanceNormalization) \
463 X(TransposeConvolution2d) \
467 X(UnidirectionalSequenceLstm) \
473 X(ElementwiseBinary) \
481 #define X(name) name,
NormalizationAlgorithmMethod
constexpr unsigned int LOWEST_CAPTURE_PERIOD
The lowest performance data capture interval we support is 10 miliseconds.
std::chrono::high_resolution_clock::time_point HighResolutionClock
Define a timer and associated inference ID for recording execution times.
constexpr unsigned int EXPIRE_RATE
Variable to control expire rate of priority queue.
NormalizationAlgorithmChannel
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
@ ValidateOnly
Validate all output shapes.
@ LocalContrast
Jarret 2009: Local Contrast Normalization.
unsigned int ImportedInputId
typename ArrayType::const_iterator ConstIterator
@ NonConstWeights
Constant weights can be accessed through the descriptors, On the other hand, non-const weights can be...
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
#define LIST_OF_LAYER_TYPE
This list uses X macro technique.
ShapeInferenceMethod
The ShapeInferenceMethod modify how the output shapes are treated.
@ IgnoreValue
The padding fields count, but are ignored.
virtual const BackendId & GetId() const =0
PermutationVector(const ValueType *dimMappings, SizeType numDimMappings)
Copyright (c) 2021 ARM Limited and Contributors.
std::array< ValueType, MaxNumOfTensorDimensions > ArrayType
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
std::shared_ptr< IBackend > IBackendSharedPtr
@ AsyncExecution
Asynchronous Execution.
@ LocalBrightness
Krichevsky 2012: Local Brightness Normalization.
virtual const BackendIdSet & GetSupportedBackends() const =0
Device specific knowledge to be passed to the optimizer.
MemorySource
Define the Memory Source to reduce copies.
PaddingMode
The padding mode controls whether the padding should be filled with constant values (Constant),...
std::unique_ptr< IBackend, void(*)(IBackend *backend)> IBackendUniquePtr
ConstIterator begin() const
PaddingMethod
The padding method modifies the output of pooling layers.
std::unordered_set< BackendId > BackendIdSet
BackendCapability
BackendCapability class.
ValueType operator[](SizeType i) const
Indexing method with out-of-bounds error checking for the m_DimMappings array.
std::pair< HighResolutionClock, HighResolutionClock > InferenceTimingPair
bool IsEqual(const PermutationVector &other) const
ProfilingDetailsMethod
Define the behaviour of the internal profiler when outputting network details.
ConstIterator end() const
Each backend should implement an IBackend.
@ Exclude
The padding fields don't count and are ignored.
arm::pipe::ProfilingGuid LayerGuid
Define LayerGuid type.
@ BoundedReLu
min(a, max(b, input)) ReLu1 & ReLu6.
constexpr unsigned int MaxNumOfTensorDimensions
bool IsInverse(const PermutationVector &other) const
unsigned int ImportedOutputId
const char * GetLayerTypeAsCString(LayerType type)
@ InferAndValidate
Infer missing output shapes and validate all output shapes.