8000
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 9c095b5 commit 2a08365Copy full SHA for 2a08365
aten/src/ATen/native/cuda/UpSampleNearest2d.cu
@@ -48,9 +48,9 @@ __global__ void upsample_nearest2d_out_frame(
48
const size_t width2,
49
float height_scale,
50
float width_scale) {
51
- size_t nc_iter = ((size_t) threadIdx.z) + blockIdx.z * blockDim.z;
+ size_t nc_iter = threadIdx.z + blockIdx.z * blockDim.z;
52
int64_t w2 = ((int64_t) threadIdx.x) + blockIdx.x * blockDim.x;
53
- int64_t h2 = ((int64_t) threadIdx.y) + blockIdx.y * blockDim.y;
+ int64_t h2 = threadIdx.y + blockIdx.y * blockDim.y;
54
55
if (w2 >= width2 || h2 >= height2) {
56
return;
0 commit comments