18#include "kernels/Utils.h"
21#include "PALSpaceToDepth.h"
32 Tensor::element_type(kernel.
output()));
34 const auto *options =
cur_op->builtin_options_as_SpaceToDepthOptions();
36 const int32_t block_size = options->block_size();
57 const auto *options =
cur_op->builtin_options_as_SpaceToDepthOptions();
58 const int32_t block_size = options->block_size();
60 switch (Tensor::element_type(kernel.
input()))
63 case DataType::FLOAT32:
65 assert(block_size != 0);
66 luci_interpreter_pal::SpaceToDepth(
75 assert(
false &&
"Unsupported type");
uint8_t * getDataByTensor(const circle::Tensor *raw_tensor)
const circle::Tensor * output() const
const circle::Tensor * input() const
#define LUCI_INTERPRETER_CHECK(cond)
luci_interpreter::RuntimeShape getTensorRuntimeShape(const circle::Tensor *circle_tensor, BaseRuntimeGraph *runtime_graph)
void configure_kernel_CircleSpaceToDepth(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)
void execute_kernel_CircleSpaceToDepth(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)
T must_cast(loco::Node *node)
const loco::Dimension & dim(uint32_t axis) const