17 void FakeQuantization(
const float* inputData,
float* outputData, uint32_t numElements,
float min,
float max)
19 float scale = (max - min) / 255.f;
20 int32_t offset = armnn::numeric_cast<int32_t>((-min * 255.f) / (max - min));
22 for (uint32_t i = 0; i < numElements; i++)
24 outputData[i] =
static_cast<float>(armnn::Quantize<uint8_t>(inputData[i], scale, offset));
41 std::vector<ITensorHandle*> outputs)
const
47 const float* inputData =
reinterpret_cast<const float*
>(inputs[0]->Map());
48 float* outputData =
reinterpret_cast<float*
>(outputs[0]->Map());
51 m_Data.m_Parameters.m_Max);