| 74 | } |
| 75 | |
| 76 | void 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 | |
| 90 | void init_lut(LookupTable65536 &lut, const LUTInfo &info) |
| 91 | { |
no test coverage detected