32 Tensor::element_type(kernel.
input2()));
34 Tensor::element_type(kernel.
input2()));
36 if (Tensor::element_type(kernel.
input1()) == DataType::S16)
39 Tensor::zero_points(kernel.
input2()).size() == 1);
41 Tensor::zero_point(kernel.
input2()) == 0 &&
42 Tensor::zero_point(kernel.
output()) == 0);
51 const auto *options =
cur_op->builtin_options_as_SubOptions();
63 switch (Tensor::element_type(kernel.
input1()))
66 case DataType::FLOAT32:
68 auto tiso_func = luci_interpreter_pal::Sub<float>;
89 auto tiso_func = luci_interpreter_pal::Sub<int64_t>;
110 auto tiso_func = luci_interpreter_pal::Sub<int32_t>;
134 auto tiso_func = [](
const tflite::ArithmeticParams ¶ms,
142 [](
const tflite::ArithmeticParams ¶ms,
const tflite::RuntimeShape &
input1_shape,
165 assert(
false &&
"Unsupported type.");