33OMStatus onert_micro::import::configure_kernel_CircleAddN(
const OMConfigureArgs &config_args)
36 uint16_t op_index = config_args.kernel_index;
44 const auto kInputsNum = runtime_kernel.
inputs_num;
47 assert(output !=
nullptr);
49 assert(input1 !=
nullptr);
52 for (
int idx = 1; idx < kInputsNum; ++idx)
54 const circle::Tensor *
input = runtime_kernel.
inputs[idx];
55 assert(input !=
nullptr);
56 status = utils::checkCondition(input1->type() ==
input->type());
61 status = utils::checkCondition(input1->type() ==
output->type());
65 for (
int idx = 1; idx < kInputsNum; ++idx)
67 const circle::Tensor *
input = runtime_kernel.
inputs[idx];
68 assert(input !=
nullptr);
70 status = utils::checkCondition(input_shape == input1_shape);
75 status = utils::checkCondition(input1->type() != circle::TensorType_INT8 and
76 input1->type() != circle::TensorType_INT16);
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]
constexpr uint32_t input1TensorIdx
constexpr uint32_t outputTensorIdx