35 Tensor::element_type(tiso_kernel.
output()));
41 const auto *params = cur_op->builtin_options_as_ResizeNearestNeighborOptions();
42 if (params->half_pixel_centers() && params->align_corners())
43 assert(
false &&
"If half_pixel_centers is True, align_corners must be False.");
53 const auto *op_params = cur_op->builtin_options_as_ResizeNearestNeighborOptions();
63 switch (Tensor::element_type(tiso_kernel.
output()))
66 case DataType::FLOAT32:
67 luci_interpreter_pal::ResizeNearestNeighbor(
69 kernels::getTensorData<float>(input_data),
71 kernels::getTensorData<int32_t>(size_data),
73 kernels::getTensorData<float>(output_data));
77 assert(
false &&
"Unsupported type.");