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();
39 constexpr int kHeightRank = 1;
40 constexpr int kWidthRank = 2;
41 constexpr int kDepthRank = 3;
46 int output_height = input_height * block_size;
47 int output_width = input_width * block_size;
48 int output_channels = input_channels / block_size / 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");