Skip to content

Commit

Permalink
Use native::resize_output for deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cpuhrsch committed Apr 4, 2022
1 parent ca596ca commit 6ec1929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aten/src/ATen/native/sparse/SparseCsrTensorMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Tensor& addmm_out_sparse_csr_cpu(

if (&result != &self) {
if (result.layout() == kStrided) {
result.resize_as_(*self_);
at::native::resize_output(result, self_->sizes());
} else {
result.resize_as_sparse_(*self_);
}
Expand Down
2 changes: 1 addition & 1 deletion aten/src/ATen/native/sparse/cuda/SparseBlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Tensor& addmm_out_sparse_csr_cuda(

if (&result != &self) {
if (result.layout() == kStrided) {
result.resize_as_(*self_);
at::native::resize_output(result, self_->sizes());
} else {
result.resize_as_sparse_(*self_);
}
Expand Down

0 comments on commit 6ec1929

Please sign in to comment.