16 #include <type_traits>
27 default:
return "Unknown";
48 default:
return "Unknown";
58 default:
return "Unknown";
72 default:
return "Unknown";
89 default:
return "Unknown";
106 default:
return "Unknown";
116 default:
return "Unknown";
125 default:
return "Unknown";
136 default:
return "Unknown";
146 default:
return "Unknown";
156 default:
return "Unknown";
167 default:
return "Unknown";
173 switch (reduce_operation)
180 default:
return "Unknown";
201 template <
unsigned N>
202 constexpr
bool StrEqual(
const char* strA,
const char (&strB)[N])
205 for (
unsigned i = 0; isEqual && (i < N); ++i)
207 isEqual = (strA[i] == strB[i]);
262 default:
return "Unknown";
272 default:
return "Unknown";
282 default:
return "Unknown";
292 default:
return "Unknown";
298 switch (memBlockStrategyType)
302 default:
return "Unknown";
308 : std::integral_constant<bool, std::is_floating_point<T>::value && sizeof(T) == 2>
314 return std::is_integral<T>::value;
359 os <<
"Dimensionality Not Specified";
371 template<
typename QuantizedType>
372 QuantizedType
Quantize(
float value,
float scale, int32_t offset);
380 template <
typename QuantizedType>
381 float Dequantize(QuantizedType value,
float scale, int32_t offset);
385 if (
info.GetDataType() != dataType)
387 std::stringstream ss;
389 <<
" for tensor:" <<
info.GetShape()
Base class for all ArmNN exceptions so that users can filter to just those.
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
bool GetDimensionSpecificity(unsigned int i) const
Gets information about if the dimension size has been specified or not.
Dimensionality GetDimensionality() const
Function that returns the tensor type.
Copyright (c) 2021 ARM Limited and Contributors.
constexpr char const * GetLogicalBinaryOperationAsCString(LogicalBinaryOperation operation)
constexpr char const * GetPaddingMethodAsCString(PaddingMethod method)
PaddingMode
The padding mode controls whether the padding should be filled with constant values (Constant),...
constexpr char const * GetStatusAsCString(Status status)
PaddingMethod
The padding method modifies the output of pooling layers.
@ Exclude
The padding fields don't count and are ignored.
@ IgnoreValue
The padding fields count, but are ignored.
constexpr char const * GetReduceOperationAsCString(ReduceOperation reduce_operation)
constexpr char const * GetPoolingAlgorithmAsCString(PoolingAlgorithm pooling)
@ BoundedReLu
min(a, max(b, input)) ReLu1 & ReLu6.
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 * GetArgMinMaxFunctionAsCString(ArgMinMaxFunction function)
constexpr bool StrEqual(const char *strA, const char(&strB)[N])
constexpr armnn::Compute ParseComputeDevice(const char *str)
Deprecated function that will be removed together with the Compute enum.
constexpr char const * GetOutputShapeRoundingAsCString(OutputShapeRounding rounding)
constexpr char const * GetUnaryOperationAsCString(UnaryOperation operation)
constexpr const char * GetDataTypeName(DataType dataType)
float Dequantize(QuantizedType value, float scale, int32_t offset)
Dequantize an 8-bit data type into a floating point data type.
constexpr char const * GetFusedTypeAsCString(FusedKernelType type)
void VerifyTensorInfoDataType(const armnn::TensorInfo &info, armnn::DataType dataType)
constexpr unsigned int GetDataTypeSize(DataType dataType)
constexpr char const * GetActivationFunctionAsCString(ActivationFunction activation)
constexpr const char * GetMemBlockStrategyTypeName(MemBlockStrategyType memBlockStrategyType)
constexpr char const * GetComparisonOperationAsCString(ComparisonOperation operation)
QuantizedType Quantize(float value, float scale, int32_t offset)
Quantize a floating point data type into an 8-bit data type.
NormalizationAlgorithmChannel
constexpr bool IsQuantizedType()
constexpr const char * GetNormalizationAlgorithmMethodAsCString(NormalizationAlgorithmMethod method)
NormalizationAlgorithmMethod
@ LocalContrast
Jarret 2009: Local Contrast Normalization.
@ LocalBrightness
Krichevsky 2012: Local Brightness Normalization.
constexpr bool IsQuantized8BitType(DataType dataType)
constexpr char const * GetPaddingModeAsCString(PaddingMode mode)
constexpr const char * GetResizeMethodAsCString(ResizeMethod method)
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
@ CpuAcc
CPU Execution: NEON: ArmCompute.
@ CpuRef
CPU Execution: Reference C++ kernels.
@ GpuAcc
GPU Execution: OpenCL: ArmCompute.
constexpr const char * GetNormalizationAlgorithmChannelAsCString(NormalizationAlgorithmChannel channel)
constexpr char const * GetBinaryOperationAsCString(BinaryOperation operation)
constexpr const char * GetDataLayoutName(DataLayout dataLayout)