55 switch (Tensor::element_type(kernel.
input()))
58 case DataType::FLOAT32:
62 params.scale = Tensor::scale(kernel.
output());
63 switch (Tensor::element_type(kernel.
output()))
66 luci_interpreter_pal::Quantize(params, flat_size,
67 kernels::getTensorData<float>(input_data),
68 kernels::getTensorData<int8_t>(output_data));
71 luci_interpreter_pal::Quantize(params, flat_size,
72 kernels::getTensorData<float>(input_data),
73 kernels::getTensorData<uint8_t>(output_data));
76 luci_interpreter_pal::Quantize(params, flat_size,
77 kernels::getTensorData<float>(input_data),
78 kernels::getTensorData<int16_t>(output_data));
81 assert(
false &&
"Unsupported type");
87 assert(
false &&
"Unsupported type");
90 assert(
false &&
"Remove DIS_QUANT flag");