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