aten/src/ATen/native/GridSampler.cpp
// No shape checking needed here. See # NOTE [ grid_sampler Native Functions ].
No shape checking needed here. See # NOTE [ grid_sampler Native Functions ].
No shape checking needed here . See # NOTE [ grid_sampler Native Functions ] .
Tensor grid_sampler_2d_cpu(const Tensor& input, const Tensor& grid,
                           int64_t interpolation_mode, int64_t padding_mode) {
  return AT_DISPATCH_FLOATING_TYPES(input.type(), "grid_sampler2d_cpu", [&] {
    return grid_sampler2d_cpu_impl<scalar_t>(
      input, grid, static_cast<GridSamplerInterpolation>(interpolation_mode),
      static_cast<GridSamplerPadding>(padding_mode));
  });
}
Tensor grid_sampler_2d_cpu ( const Tensor & input , const Tensor & grid , int64_t interpolation_mode , int64_t padding_mode ) { return AT_DISPATCH_FLOATING_TYPES ( input . type ( ) , " " , [ & ] { return grid_sampler2d_cpu_impl < scalar_t > ( input , grid , static_cast < GridSamplerInterpolation > ( interpolation_mode ) , static_cast < GridSamplerPadding > ( padding_mode ) ) ; } ) ; }
No shape checking needed here.
No shape checking needed here .