From: Edward Yang Date: Thu, 2 Sep 2021 07:48:03 +0000 (-0700) Subject: Remove unnecessary resize_output (#64272) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~490 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0addd75be9a87d03830790a5c6a9b2e201a09c13;p=platform%2Fupstream%2Fpytorch.git Remove unnecessary resize_output (#64272) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64272 Signed-off-by: Edward Z. Yang Test Plan: Imported from OSS Reviewed By: H-Huang, bdhirsh Differential Revision: D30686941 Pulled By: ezyang fbshipit-source-id: de60e6f1115648f8cf7daaa1e652594fe8b06742 --- diff --git a/aten/src/ATen/native/UnaryOps.cpp b/aten/src/ATen/native/UnaryOps.cpp index d5052a7..b7e5963 100644 --- a/aten/src/ATen/native/UnaryOps.cpp +++ b/aten/src/ATen/native/UnaryOps.cpp @@ -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 {