23 default:
return "Unknown";
43 default:
return "Unknown";
53 default:
return "Unknown";
67 default:
return "Unknown";
83 default:
return "Unknown";
93 default:
return "Unknown";
104 default:
return "Unknown";
114 default:
return "Unknown";
124 default:
return "Unknown";
130 switch (reduce_operation)
136 default:
return "Unknown";
160 template <
unsigned N>
161 constexpr
bool StrEqual(
const char* strA,
const char (&strB)[N])
164 for (
unsigned i = 0; isEqual && (i < N); ++i)
166 isEqual = (strA[i] == strB[i]);
222 default:
return "Unknown";
232 default:
return "Unknown";
242 default:
return "Unknown";
252 default:
return "Unknown";
258 : std::integral_constant<bool, std::is_floating_point<T>::value && sizeof(T) == 2>
264 return std::is_integral<T>::value;
310 template<
typename QuantizedType>
311 QuantizedType
Quantize(
float value,
float scale, int32_t offset);
319 template <
typename QuantizedType>
320 float Dequantize(QuantizedType value,
float scale, int32_t offset);
326 std::stringstream ss;
328 <<
" for tensor:" << info.
GetShape()
constexpr const char * GetDataLayoutName(DataLayout dataLayout)
const TensorShape & GetShape() const
CPU Execution: Reference C++ kernels.
constexpr const char * GetResizeMethodAsCString(ResizeMethod method)
constexpr bool IsQuantizedType()
#define ARMNN_NO_DEPRECATE_WARN_BEGIN
The padding fields don't count and are ignored.
std::ostream & operator<<(std::ostream &os, const std::vector< Compute > &compute)
Deprecated function that will be removed together with the Compute enum.
NormalizationAlgorithmChannel
constexpr char const * GetPoolingAlgorithmAsCString(PoolingAlgorithm pooling)
Copyright (c) 2021 ARM Limited and Contributors.
constexpr char const * GetOutputShapeRoundingAsCString(OutputShapeRounding rounding)
constexpr const char * GetDataTypeName(DataType dataType)
PaddingMethod
The padding method modifies the output of pooling layers.
constexpr char const * GetUnaryOperationAsCString(UnaryOperation operation)
constexpr bool IsQuantized8BitType(DataType dataType)
constexpr char const * GetLogicalBinaryOperationAsCString(LogicalBinaryOperation operation)
constexpr char const * GetArgMinMaxFunctionAsCString(ArgMinMaxFunction function)
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
#define ARMNN_NO_DEPRECATE_WARN_END
constexpr bool StrEqual(const char *strA, const char(&strB)[N])
DataType GetDataType() const
constexpr armnn::Compute ParseComputeDevice(const char *str)
Deprecated function that will be removed together with the Compute enum.
GPU Execution: OpenCL: ArmCompute.
constexpr const char * GetNormalizationAlgorithmMethodAsCString(NormalizationAlgorithmMethod method)
min(a, max(b, input)) ReLu1 & ReLu6.
constexpr const char * GetNormalizationAlgorithmChannelAsCString(NormalizationAlgorithmChannel channel)
The padding fields count, but are ignored.
Base class for all ArmNN exceptions so that users can filter to just those.
CPU Execution: NEON: ArmCompute.
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
Jarret 2009: Local Contrast Normalization.
constexpr char const * GetComparisonOperationAsCString(ComparisonOperation operation)
constexpr char const * GetActivationFunctionAsCString(ActivationFunction activation)
void VerifyTensorInfoDataType(const armnn::TensorInfo &info, armnn::DataType dataType)
constexpr char const * GetReduceOperationAsCString(ReduceOperation reduce_operation)
constexpr char const * GetStatusAsCString(Status status)
constexpr char const * GetPaddingMethodAsCString(PaddingMethod method)
Krichevsky 2012: Local Brightness Normalization.
NormalizationAlgorithmMethod
constexpr unsigned int GetDataTypeSize(DataType dataType)