22#include "PALSpaceToDepth.h"
29constexpr uint32_t inputTensorIdx = 0;
33OMStatus onert_micro::execute::execute_kernel_CircleSpaceToDepth(
40 const circle::Tensor *
input;
41 const circle::Tensor *
output;
58 assert(input !=
nullptr);
59 assert(output !=
nullptr);
61 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
68 const int32_t block_size =
options->block_size();
69 switch (
input->type())
72 case circle::TensorType_FLOAT32:
75 pal::SpaceToDepth<float>(block_size, input_shape,
reinterpret_cast<float *
>(input_data),
81 case circle::TensorType_INT8:
84 pal::SpaceToDepth<int8_t>(block_size, input_shape,
reinterpret_cast<int8_t *
>(input_data),
92 assert(
false &&
"Unsupported type.");
uint8_t * outputs_data[maxOutputSize]
const circle::Operator * first_operator
OMStatus getDataFromStorage(uint16_t op_index, core::OMRuntimeStorage &storage, core::OMRuntimeContext &context)
uint8_t * inputs_data[maxInputSize]
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
core::OMRuntimeContext & runtime_context
core::OMRuntimeStorage & runtime_storage