Skip to content

Commit 1ca8388

Browse files
malfetpytorchmergebot
authored andcommitted
[BE][MPS] Remove unused size12 variable (pytorch#159832)
Fixes following compilation warning ``` /Users/nshulga/git/pytorch/pytorch/aten/src/ATen/native/mps/kernels/Pooling.metal:433:8: warning: unused variable 'size12' [-Wunused-variable] auto size12 = input_sizes[1] * input_sizes[2]; ^ 1 warning generated. ``` Pull Request resolved: pytorch#159832 Approved by: https://github.com/dcci
1 parent b694973 commit 1ca8388

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aten/src/ATen/native/mps/kernels/Pooling.metal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ void avg_pool_3d_input_iter(
430430
auto divisor = has_divisor_override
431431
? divisor_override
432432
: (bounds0.count) * (bounds1.count) * (bounds2.count);
433-
auto size12 = input_sizes[1] * input_sizes[2];
434433

435434
for (auto i0 = bounds0.start; i0 < bounds0.end; i0++) {
436435
auto offset0 = input_strides[0] * i0;
@@ -488,7 +487,6 @@ void avg_pool_backward_3d_input_iter(
488487
? divisor_override
489488
: (bounds0.count) * (bounds1.count) * (bounds2.count);
490489
auto grad_val = *grad_output / static_cast<T>(divisor);
491-
auto size12 = grad_input_sizes[1] * grad_input_sizes[2];
492490

493491
for (auto i0 = bounds0.start; i0 < bounds0.end; i0++) {
494492
auto offset0 = grad_input_strides[0] * i0;

0 commit comments

Comments
 (0)