We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7264b commit f77c27dCopy full SHA for f77c27d
kernels/portable/cpu/op_grid_sampler_2d.cpp
@@ -116,7 +116,8 @@ void grid_sample_2d_bilinear_kernel_impl_nchw(
116
}
117
} else {
118
// For border/reflection padding, clip corner indices to valid range
119
- // Even though source coordinates are clipped, adding 1 can push corners out of bounds
+ // Even though source coordinates are clipped, adding 1 can push
120
+ // corners out of bounds
121
const int64_t ix_nw_safe = clip_coordinates(ix_nw, inp_W);
122
const int64_t iy_nw_safe = clip_coordinates(iy_nw, inp_H);
123
const int64_t ix_ne_safe = clip_coordinates(ix_ne, inp_W);
0 commit comments