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";
202constexpr 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";
371template<
typename QuantizedType>
372QuantizedType
Quantize(
float value,
float scale, int32_t offset);
380template <
typename QuantizedType>
381float 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 * GetBinaryOperationAsCString(BinaryOperation operation)
PaddingMode
The padding mode controls whether the padding should be filled with constant values (Constant),...
constexpr bool IsQuantized8BitType(DataType dataType)
constexpr char const * GetComparisonOperationAsCString(ComparisonOperation operation)
constexpr char const * GetUnaryOperationAsCString(UnaryOperation operation)
constexpr char const * GetPaddingMethodAsCString(PaddingMethod method)
constexpr const char * GetDataTypeName(DataType dataType)
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 const char * GetDataLayoutName(DataLayout dataLayout)
constexpr char const * GetActivationFunctionAsCString(ActivationFunction activation)
constexpr bool IsQuantizedType()
@ BoundedReLu
min(a, max(b, input)) ReLu1 & ReLu6.
constexpr const char * GetNormalizationAlgorithmMethodAsCString(NormalizationAlgorithmMethod method)
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 unsigned int GetDataTypeSize(DataType dataType)
constexpr const char * GetMemBlockStrategyTypeName(MemBlockStrategyType memBlockStrategyType)
std::ostream & operator<<(std::ostream &os, const std::vector< Compute > &compute)
Deprecated function that will be removed together with the Compute enum.
constexpr const char * GetNormalizationAlgorithmChannelAsCString(NormalizationAlgorithmChannel channel)
constexpr char const * GetStatusAsCString(Status status)
constexpr char const * GetFusedTypeAsCString(FusedKernelType type)
constexpr char const * GetArgMinMaxFunctionAsCString(ArgMinMaxFunction function)
NormalizationAlgorithmChannel
void VerifyTensorInfoDataType(const armnn::TensorInfo &info, armnn::DataType dataType)
constexpr char const * GetPaddingModeAsCString(PaddingMode mode)
NormalizationAlgorithmMethod
@ LocalContrast
Jarret 2009: Local Contrast Normalization.
@ LocalBrightness
Krichevsky 2012: Local Brightness Normalization.
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 char const * GetOutputShapeRoundingAsCString(OutputShapeRounding rounding)
constexpr char const * GetReduceOperationAsCString(ReduceOperation reduce_operation)
constexpr char const * GetPoolingAlgorithmAsCString(PoolingAlgorithm pooling)
constexpr char const * GetLogicalBinaryOperationAsCString(LogicalBinaryOperation operation)