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

Function init_lut

src/core/helpers/LUTManager.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void init_lut(LookupTable256 &lut, const LUTInfo &info)
77{
78 // assert lut is valid config.
79 ARM_COMPUTE_ASSERT((info.type == LUTType::Exponential && info.dt == DataType::QASYMM8) ||
80 (info.type == LUTType::Exponential && info.dt == DataType::QASYMM8_SIGNED));
81
82 for (int i = 0; i < 256; ++i)
83 {
84 const float deq = info.dt == DataType::QASYMM8 ? dequantize_qasymm8(i, info.qinfo)
85 : dequantize_qasymm8_signed(i - 128, info.qinfo);
86 lut[i] = exponential(deq, info);
87 }
88}
89
90void init_lut(LookupTable65536 &lut, const LUTInfo &info)
91{

Callers 1

get_lut_tableMethod · 0.70

Calls 5

exponentialFunction · 0.85
activationFunction · 0.85
exponential_bf16Function · 0.85
dequantize_qasymm8Function · 0.50

Tested by

no test coverage detected