22#include "PALFloorMod.h"
28OMStatus onert_micro::execute::execute_kernel_CircleFloorMod(
const OMExecuteArgs &execute_args)
38 circle::TensorType input1_type;
47 case circle::TensorType_FLOAT32:
50 for (
int i = 0; i < input_shape2.
flatSize(); ++i)
52 utils::checkCondition(core::utils::castInputData<float>(input_data2)[i] != 0);
55 if (input_shape1 == input_shape2)
57 const int flat_size = input_shape1.
flatSize();
58 pal::FloorMod(flat_size, core::utils::castInputData<float>(input_data1),
59 core::utils::castInputData<float>(input_data2),
60 core::utils::castOutputData<float>(output_data));
64 pal::BroadcastFloorMod4DSlow(input_shape1, core::utils::castInputData<float>(input_data1),
65 input_shape2, core::utils::castInputData<float>(input_data2),
66 output_shape, core::utils::castOutputData<float>(output_data));
72 assert(
false &&
"Unsupported type.");
const luci_interpreter::RuntimeShape output_shape
OMStatus readKernelDataTISO(const OMExecuteArgs &execute_args, uint8_t *&input_data1, uint8_t *&input_data2, uint8_t *&output_data, core::OMRuntimeShape &input1_shape_ref, core::OMRuntimeShape &input2_shape_ref, core::OMRuntimeShape &output_shape_ref, circle::TensorType &tensor_type)