24.02
|
Go to the documentation of this file.
16 #include <type_traits>
27 default:
return "Unknown";
48 default:
return "Unknown";
58 default:
return "Unknown";
72 default:
return "Unknown";
88 default:
return "Unknown";
105 default:
return "Unknown";
115 default:
return "Unknown";
124 default:
return "Unknown";
135 default:
return "Unknown";
145 default:
return "Unknown";
155 default:
return "Unknown";
166 default:
return "Unknown";
172 switch (reduce_operation)
179 default:
return "Unknown";
200 template <
unsigned N>
201 constexpr
bool StrEqual(
const char* strA,
const char (&strB)[N])
204 for (
unsigned i = 0; isEqual && (i < N); ++i)
206 isEqual = (strA[i] == strB[i]);
261 default:
return "Unknown";
271 default:
return "Unknown";
281 default:
return "Unknown";
291 default:
return "Unknown";
297 switch (memBlockStrategyType)
301 default:
return "Unknown";
307 : std::integral_constant<bool, std::is_floating_point<T>::value && sizeof(T) == 2>
313 return std::is_integral<T>::value;
358 os <<
"Dimensionality Not Specified";
370 template<
typename QuantizedType>
371 QuantizedType
Quantize(
float value,
float scale, int32_t offset);
379 template <
typename QuantizedType>
380 float Dequantize(QuantizedType value,
float scale, int32_t offset);
384 if (
info.GetDataType() != dataType)
386 std::stringstream ss;
388 <<
" for tensor:" <<
info.GetShape()
constexpr char const * GetBinaryOperationAsCString(BinaryOperation operation)
constexpr armnn::Compute ParseComputeDevice(const char *str)
Deprecated function that will be removed together with the Compute enum.
constexpr char const * GetLogicalBinaryOperationAsCString(LogicalBinaryOperation operation)
constexpr bool IsQuantized8BitType(DataType dataType)
@ GpuAcc
GPU Execution: OpenCL: ArmCompute.
constexpr const char * GetResizeMethodAsCString(ResizeMethod method)
@ CpuRef
CPU Execution: Reference C++ kernels.
constexpr char const * GetStatusAsCString(Status status)
bool GetDimensionSpecificity(unsigned int i) const
Gets information about if the dimension size has been specified or not.
@ LocalBrightness
Krichevsky 2012: Local Brightness Normalization.
NormalizationAlgorithmMethod
constexpr const char * GetDataTypeName(DataType dataType)
constexpr const char * GetDataLayoutName(DataLayout dataLayout)
PaddingMode
The padding mode controls whether the padding should be filled with constant values (Constant),...
@ BoundedReLu
min(a, max(b, input)) ReLu1 & ReLu6.
constexpr char const * GetActivationFunctionAsCString(ActivationFunction activation)
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
constexpr char const * GetPaddingMethodAsCString(PaddingMethod method)
constexpr char const * GetFusedTypeAsCString(FusedKernelType type)
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
std::ostream & operator<<(std::ostream &os, const std::vector< Compute > &compute)
Deprecated function that will be removed together with the Compute enum.
constexpr char const * GetPoolingAlgorithmAsCString(PoolingAlgorithm pooling)
@ Exclude
The padding fields don't count and are ignored.
void VerifyTensorInfoDataType(const armnn::TensorInfo &info, armnn::DataType dataType)
@ IgnoreValue
The padding fields count, but are ignored.
float Dequantize(QuantizedType value, float scale, int32_t offset)
Dequantize an 8-bit data type into a floating point data type.
constexpr unsigned int GetDataTypeSize(DataType dataType)
Base class for all ArmNN exceptions so that users can filter to just those.
QuantizedType Quantize(float value, float scale, int32_t offset)
Quantize a floating point data type into an 8-bit data type.
constexpr const char * GetNormalizationAlgorithmChannelAsCString(NormalizationAlgorithmChannel channel)
constexpr char const * GetArgMinMaxFunctionAsCString(ArgMinMaxFunction function)
constexpr char const * GetOutputShapeRoundingAsCString(OutputShapeRounding rounding)
constexpr char const * GetPaddingModeAsCString(PaddingMode mode)
constexpr const char * GetNormalizationAlgorithmMethodAsCString(NormalizationAlgorithmMethod method)
constexpr char const * GetUnaryOperationAsCString(UnaryOperation operation)
constexpr char const * GetReduceOperationAsCString(ReduceOperation reduce_operation)
constexpr bool StrEqual(const char *strA, const char(&strB)[N])
constexpr bool IsQuantizedType()
@ CpuAcc
CPU Execution: NEON: ArmCompute.
Copyright (c) 2021 ARM Limited and Contributors.
NormalizationAlgorithmChannel
@ LocalContrast
Jarret 2009: Local Contrast Normalization.
PaddingMethod
The padding method modifies the output of pooling layers.
Dimensionality GetDimensionality() const
Function that returns the tensor type.
constexpr char const * GetComparisonOperationAsCString(ComparisonOperation operation)
constexpr const char * GetMemBlockStrategyTypeName(MemBlockStrategyType memBlockStrategyType)