28onert_micro::import::configure_kernel_CircleConcatenation(
const OMConfigureArgs &config_args)
31 uint16_t op_index = config_args.kernel_index;
41 const auto *t0 = runtime_kernel.
inputs[0];
44 const auto *params = runtime_kernel.
first_operator->builtin_options_as_ConcatenationOptions();
47 if (params->fused_activation_function() != circle::ActivationFunctionType_NONE)
51 int axis = params->axis();
53 axis += input_shape.dimensionsCount();
55 if (axis < 0 or axis > input_shape.dimensionsCount())
61 if (
tensor->type() != t0->type())
65 if (t0->type() != circle::TensorType_INT8 and t0->type() != circle::TensorType_INT16)
75 if (
tensor->quantization() ==
nullptr)
78 if (
tensor->quantization()->scale()->size() != 1)
81 if (
tensor->quantization()->zero_point()->size() != 1)
84 if (*
tensor->quantization()->scale()->begin() != *
output->quantization()->scale()->begin())
87 if (*
tensor->quantization()->zero_point()->begin() !=
88 *
output->quantization()->zero_point()->begin())
const circle::Operator * first_operator
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]