28constexpr uint32_t inputTensorIdx = 0;
33OMStatus onert_micro::import::configure_kernel_CircleSpaceToDepth(
45 const circle::Tensor *
input = runtime_kernel.
inputs[inputTensorIdx];
48 assert(input !=
nullptr);
49 assert(output !=
nullptr);
51 status = utils::checkCondition(
input->type() ==
output->type());
59 const int32_t block_size =
options->block_size();
61 status = utils::checkCondition(block_size > 0);
65 constexpr int kHeightRank = 1;
66 constexpr int kWidthRank = 2;
68 const int input_height = input_shape.dims(kHeightRank);
69 const int input_width = input_shape.dims(kWidthRank);
73 status = utils::checkCondition(input_height == output_height * block_size);
77 status = utils::checkCondition(input_width == output_width * block_size);
int32_t dims(int i) const
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]
const luci_interpreter::RuntimeShape output_shape
constexpr uint32_t outputTensorIdx