8000 Update UpSampleNearest2d.cu · pytorch/pytorch@2a08365 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a08365

Browse files
eqypytorchmergebot
authored andcommitted
Update UpSampleNearest2d.cu
1 parent 9c095b5 commit 2a08365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aten/src/ATen/native/cuda/UpSampleNearest2d.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ __global__ void upsample_nearest2d_out_frame(
4848
const size_t width2,
4949
float height_scale,
5050
float width_scale) {
51-
size_t nc_iter = ((size_t) threadIdx.z) + blockIdx.z * blockDim.z;
51+
size_t nc_iter = threadIdx.z + blockIdx.z * blockDim.z;
5252
int64_t w2 = ((int64_t) threadIdx.x) + blockIdx.x * blockDim.x;
53-
int64_t h2 = ((int64_t) threadIdx.y) + blockIdx.y * blockDim.y;
53+
int64_t h2 = threadIdx.y + blockIdx.y * blockDim.y;
5454

5555
if (w2 >= width2 || h2 >= height2) {
5656
return;

0 commit comments

Comments
 (0)
0