29constexpr uint32_t inputTensorIdx = 0;
30constexpr uint32_t shapeTensorIdx = 1;
35OMStatus onert_micro::import::configure_kernel_CircleReshape(
const OMConfigureArgs &config_args)
38 uint16_t op_index = config_args.kernel_index;
47 const circle::Tensor *
input = runtime_kernel.
inputs[inputTensorIdx];
48 const circle::Tensor *shape = runtime_kernel.
inputs[shapeTensorIdx];
51 assert(input !=
nullptr);
52 assert(shape !=
nullptr);
53 assert(output !=
nullptr);
55 status = utils::checkCondition(
input->type() ==
output->type());
68 auto input_shape_size = input_shape.flatSize();
74 status = utils::checkCondition(input_shape_size != 1);
89 status = utils::checkCondition(
bool isConstTensor(uint32_t tensor_index)
OMStatus setDynamicRuntimeShape(uint16_t tensor_index, const OMRuntimeShape &shape)
int32_t outputs_index[maxOutputSize]
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
int32_t inputs_index[maxInputSize]
const circle::Tensor * inputs[maxInputSize]
const luci_interpreter::RuntimeShape output_shape
constexpr uint32_t outputTensorIdx