8000 [BE] Remove unusued `channels` arg in col2im (#142336) · pytorch/pytorch@7435f57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7435f57

Browse files
malfetpytorchmergebot
authored andcommitted
[BE] Remove unusued channels arg in col2im (#142336)
Number of channels is passed to col2im kernel/device function, but is not used during the computations at all Pull Request resolved: #142336 Approved by: https://github.com/Skylion007, https://github.com/eqy
1 parent 75e72e1 commit 7435f57

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

aten/src/ATen/native/cuda/im2col.cuh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ __forceinline__ __device__ void col2im_device(
107107
const dt* data_col,
108108
const int64_t height,
109109
const int64_t width,
110-
const int64_t channels,
111110
const int64_t kernel_h,
112111
const int64_t kernel_w,
113112
const int64_t pad_height,
@@ -162,7 +161,6 @@ __global__ void col2im_kernel(
162161
const dt* data_col,
163162
const int64_t height,
164163
const int64_t width,
165-
const int64_t channels,
166164
const int64_t kernel_h,
167165
const int64_t kernel_w,
168166
const int64_t pad_height,
@@ -180,7 +178,6 @@ __global__ void col2im_kernel(
180178
data_col,
181179
height,
182180
width,
183-
channels,
184181
kernel_h,
185182
kernel_w,
186183
pad_height,
@@ -223,7 +220,6 @@ void col2im(
223220
data_col,
224221
height,
225222
width,
226-
channels,
227223
patch_height,
228224
patch_width,
229225
pad_height,
@@ -247,7 +243,6 @@ __global__ void col2im_batched_kernel(
247243
const int64_t nbatch,
248244
const int64_t height,
249245
const int64_t width,
250-
const int64_t channels,
251246
const int64_t kernel_h,
252247
const int64_t kernel_w,
253248
const int64_t pad_height,
@@ -272,7 +267,6 @@ __global__ void col2im_batched_kernel(
272267
data_col + ibatch * col_batch_stride,
273268
height,
274269
width,
275-
channels,
276270
kernel_h,
277271
kernel_w,
278272
pad_height,
@@ -324,7 +318,6 @@ void col2im_batched(
324318
nbatch,
325319
height,
326320
width,
327-
channels,
328321
patch_height,
329322
patch_width,
330323
pad_height,

0 commit comments

Comments
 (0)
0