62 for (
int i = 0; i < spatial_dims_num; ++i)
65 (
input()->
shape().
dim(i + 1) + paddings_data[i * 2] + paddings_data[i * 2 + 1]);
67 output_shape.dim(i + 1) = final_dim_size / block_shape_data[i];
68 output_batch_size = output_batch_size * block_shape_data[i];
78 switch (
input()->element_type())
80 tflite::SpaceToBatchParams op_params;
81 case DataType::FLOAT32:
82 op_params.output_offset = 0;
83 luci_interpreter_pal::SpaceToBatchND(
87 getTensorData<float>(
output()));
91 luci_interpreter_pal::SpaceToBatchND(
95 getTensorData<uint8_t>(
output()));
98 throw std::runtime_error(
"luci-intp ShapeToBatchND Unsupported type.");