mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-03 23:45:05 +08:00
Fix unused variable warning in FractionalMaxPool3d (#71591)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/71591 Test Plan: Sandcastle Reviewed By: ngimel Differential Revision: D33692623 fbshipit-source-id: f96446751f41555a6b5e5289f94efb98c87c66d0 (cherry picked from commit a5c272793e55c4a41af553727a97f490c8e152fa)
This commit is contained in:
committed by
PyTorch MergeBot
parent
27308642a0
commit
3e55fa6385
@ -145,7 +145,6 @@ void fractional_max_pool3d_backward_out_cuda_template(
|
||||
Tensor& gradInput,
|
||||
const Tensor& gradOutput,
|
||||
const Tensor& input,
|
||||
IntArrayRef pool_size /* unused */,
|
||||
IntArrayRef output_size,
|
||||
const Tensor& indices) {
|
||||
int64_t dimt = 1;
|
||||
@ -306,7 +305,7 @@ TORCH_IMPL_FUNC(fractional_max_pool3d_out_cuda) (
|
||||
|
||||
Tensor& fractional_max_pool3d_backward_out_cuda(const at::Tensor& gradOutput_,
|
||||
const at::Tensor& input,
|
||||
IntArrayRef pool_size,
|
||||
IntArrayRef /*pool_size*/,
|
||||
IntArrayRef output_size,
|
||||
const at::Tensor& indices,
|
||||
at::Tensor& gradInput) {
|
||||
@ -317,7 +316,6 @@ Tensor& fractional_max_pool3d_backward_out_cuda(const at::Tensor& gradOutput_,
|
||||
gradInput,
|
||||
gradOutput_,
|
||||
input,
|
||||
pool_size,
|
||||
output_size,
|
||||
indices
|
||||
);
|
||||
@ -338,7 +336,6 @@ Tensor fractional_max_pool3d_backward_cuda(
|
||||
gradInput,
|
||||
gradOutput,
|
||||
input,
|
||||
pool_size,
|
||||
output_size,
|
||||
indices
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user