18#include "kernels/Utils.h"
21#include "PALDepthToSpace.h"
32 Tensor::element_type(kernel.
output()));
34 const auto *options =
cur_op->builtin_options_as_DepthToSpaceOptions();
36 const int32_t block_size = options->block_size();
60 const auto *options =
cur_op->builtin_options_as_DepthToSpaceOptions();
61 const int32_t block_size = options->block_size();
63 switch (Tensor::element_type(kernel.
input()))
66 case DataType::FLOAT32:
68 assert(block_size != 0);
69 luci_interpreter_pal::DepthToSpace(
78 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 execute_kernel_CircleDepthToSpace(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)
void configure_kernel_CircleDepthToSpace(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)
T must_cast(loco::Node *node)
const loco::Dimension & dim(uint32_t axis) const