45 const auto input = kernel.
input();
46 const auto output = kernel.
output();
55 output_data =
const_cast<uint8_t *
>(input_data);
58 assert(input_data !=
nullptr);
59 assert(output_data !=
nullptr);
63 switch (Tensor::element_type(input))
66 case DataType::FLOAT32:
68 kernels::getTensorData<float>(output_data));
74 Tensor::scale(input), Tensor::zero_point(input),
75 kernels::getTensorData<int8_t>(output_data),
76 Tensor::scale(output), Tensor::zero_point(output));
80 assert(
false &&
"Unsupported type.");