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