32constexpr int kInputTensorIdx = 0;
33constexpr int kPermTensorIdx = 1;
34constexpr int kOutputTensorIdx = 0;
38OMStatus onert_micro::import::configure_kernel_CircleTranspose(
const OMConfigureArgs &config_args)
41 uint16_t op_index = config_args.kernel_index;
44 runtime_kernel.
readKernel(op_index, runtime_context);
46 const circle::Tensor *
input = runtime_kernel.
inputs[kInputTensorIdx];
47 const circle::Tensor *perm = runtime_kernel.
inputs[kPermTensorIdx];
48 const circle::Tensor *
output = runtime_kernel.
outputs[kOutputTensorIdx];
50 assert(input !=
nullptr);
51 assert(perm !=
nullptr);
52 assert(output !=
nullptr);
56 status = utils::checkCondition(perm->type() == circle::TensorType_INT32);
63 status = utils::checkCondition(perm_shape.dimensionsCount() == 1);
67 status = utils::checkCondition(perm_shape.dims(0) == input_shape.dimensionsCount());
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]