28constexpr uint32_t inputTensorIdx = 0;
33OMStatus onert_micro::import::configure_kernel_CircleDequantize(
const OMConfigureArgs &config_args)
36 uint16_t op_index = config_args.kernel_index;
44 const circle::Tensor *
input = runtime_kernel.
inputs[inputTensorIdx];
47 assert(input !=
nullptr);
48 assert(output !=
nullptr);
54 status = utils::checkCondition(input_shape ==
output_shape);
59 status = utils::checkCondition(
output->type() == circle::TensorType_FLOAT32);
64 const auto *input_quantization =
input->quantization();
65 status = utils::checkCondition(
input->type() != circle::TensorType_FLOAT32 or
66 input_quantization !=
nullptr and
67 input_quantization->scale() !=
nullptr and
68 input_quantization->scale()->size() == 1);
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]
const luci_interpreter::RuntimeShape output_shape
constexpr uint32_t outputTensorIdx