Remove unnecessary resize_output (#64272)
authorEdward Yang <ezyang@fb.com>
Thu, 2 Sep 2021 07:48:03 +0000 (00:48 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 2 Sep 2021 08:34:17 +0000 (01:34 -0700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64272

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS

Reviewed By: H-Huang, bdhirsh

Differential Revision: D30686941

Pulled By: ezyang

fbshipit-source-id: de60e6f1115648f8cf7daaa1e652594fe8b06742

aten/src/ATen/native/UnaryOps.cpp

index d5052a7..b7e5963 100644 (file)
@@ -191,7 +191,6 @@ TORCH_IMPL_FUNC(polygamma_out)
 }
 
 TORCH_IMPL_FUNC(signbit_out) (const Tensor& self, const Tensor& result) {
-  at::native::resize_output(result, self.sizes());
   if (self.dtype() == at::kBool) {
     result.fill_(false);
   } else {