MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / convert_from_asymmetric

Function convert_from_asymmetric

tests/validation/Helpers.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{
41template <>
42SimpleTensor<float> convert_from_asymmetric(const SimpleTensor<uint8_t> &src)
43{
44 const UniformQuantizationInfo &quantization_info = src.quantization_info().uniform();
45 SimpleTensor<float> dst{src.shape(), DataType::F32, 1, QuantizationInfo(), src.data_layout()};
46#if defined(_OPENMP)
47#pragma omp parallel for
48#endif /* _OPENMP */
49 for (int i = 0; i < src.num_elements(); ++i)
50 {
51 dst[i] = dequantize_qasymm8(src[i], quantization_info);
52 }
53 return dst;
54}
55
56template <>
57SimpleTensor<float> convert_from_asymmetric(const SimpleTensor<int8_t> &src)

Callers 15

roi_align_layerFunction · 0.85
pooling_3d_layer<int8_t>Function · 0.85
arithmetic_operationFunction · 0.85
arithmetic_operationFunction · 0.85
reduction_operationFunction · 0.85
roi_pool_layerFunction · 0.85
pooling_layer<uint8_t>Function · 0.85
pooling_layer<int8_t>Function · 0.85

Calls 9

dequantize_qasymm16Function · 0.85
QuantizationInfoClass · 0.50
dequantize_qasymm8Function · 0.50
uniformMethod · 0.45
quantization_infoMethod · 0.45
shapeMethod · 0.45
data_layoutMethod · 0.45
num_elementsMethod · 0.45

Tested by

no test coverage detected