21#include "PALComparisons.h"
23#include "PALFloorDiv.h"
29OMStatus onert_micro::execute::execute_kernel_CircleFloorDiv(
const OMExecuteArgs &execute_args)
39 circle::TensorType input1_type;
48 case circle::TensorType_FLOAT32:
51 for (
int i = 0; i < input_shape2.
flatSize(); ++i)
53 status = utils::checkCondition(core::utils::castInputData<float>(input_data2)[i] != 0);
58 if (input_shape1 == input_shape2)
60 const int flat_size = input_shape1.
flatSize();
61 pal::FloorDiv(flat_size, core::utils::castInputData<float>(input_data1),
62 core::utils::castInputData<float>(input_data2),
63 core::utils::castOutputData<float>(output_data));
67 pal::BroadcastFloorDiv4DSlow(input_shape1, core::utils::castInputData<float>(input_data1),
68 input_shape2, core::utils::castInputData<float>(input_data2),
69 output_shape, core::utils::castOutputData<float>(output_data));
75 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)