39 const auto *options = cur_op->builtin_options_as_FloorModOptions();
52 assert(input_data1 !=
nullptr);
53 assert(input_data2 !=
nullptr);
54 assert(output_data !=
nullptr);
56 switch (Tensor::element_type(kernel.
input1()))
59 case DataType::FLOAT32:
62 for (
int i = 0; i < input_shape2.
flatSize(); ++i)
69 const int flat_size = input_shape1.
flatSize();
71 kernels::getTensorData<float>(input_data2),
72 kernels::getTensorData<float>(output_data));
77 input_shape1, kernels::getTensorData<float>(input_data1), input_shape2,
78 kernels::getTensorData<float>(input_data2),
output_shape,
79 kernels::getTensorData<float>(output_data));
85 assert(
false &&
"Unsupported type.");
void BroadcastFloorMod4DSlow(const luci_interpreter::RuntimeShape &input1_shape, const float *input1_data, const luci_interpreter::RuntimeShape &input2_shape, const float *input2_data, const luci_interpreter::RuntimeShape &output_shape, float *output_data)