23 default:
return "Unknown";
43 default:
return "Unknown";
53 default:
return "Unknown";
67 default:
return "Unknown";
80 default:
return "Unknown";
91 default:
return "Unknown";
101 default:
return "Unknown";
111 default:
return "Unknown";
135 template <
unsigned N>
136 constexpr
bool StrEqual(
const char* strA,
const char (&strB)[N])
139 for (
unsigned i = 0; isEqual && (i < N); ++i)
141 isEqual = (strA[i] == strB[i]);
196 default:
return "Unknown";
206 default:
return "Unknown";
216 default:
return "Unknown";
226 default:
return "Unknown";
232 : std::integral_constant<bool, std::is_floating_point<T>::value && sizeof(T) == 2>
238 return std::is_integral<T>::value;
284 template<
typename QuantizedType>
285 QuantizedType
Quantize(
float value,
float scale, int32_t offset);
293 template <
typename QuantizedType>
294 float Dequantize(QuantizedType value,
float scale, int32_t offset);
300 std::stringstream ss;
302 <<
" 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) 2020 ARM Limited.
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 * 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
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 * GetStatusAsCString(Status status)
constexpr char const * GetPaddingMethodAsCString(PaddingMethod method)
Krichevsky 2012: Local Brightness Normalization.
NormalizationAlgorithmMethod
constexpr unsigned int GetDataTypeSize(DataType dataType)