56 switch (Tensor::element_type(kernel.
output()))
59 case DataType::FLOAT32:
63 params.scale = Tensor::scale(kernel.
input());
64 switch (Tensor::element_type(kernel.
input()))
67 luci_interpreter_pal::Dequantize(params, flat_size,
68 kernels::getTensorData<int8_t>(input_data),
69 kernels::getTensorData<float>(output_data));
72 luci_interpreter_pal::Dequantize(params, flat_size,
73 kernels::getTensorData<uint8_t>(input_data),
74 kernels::getTensorData<float>(output_data));
77 luci_interpreter_pal::Dequantize(params, flat_size,
78 kernels::getTensorData<int16_t>(input_data),
79 kernels::getTensorData<float>(output_data));
82 assert(
false &&
"Unsupported type");
88 assert(
false &&
"Unsupported type");
91 assert(
false &&
"Remove DIS_QUANT flag");