Skip to content

Commit

Permalink
Remove unused variable (build failure with WERROR=1) (#143)
Browse files Browse the repository at this point in the history
* Remove unused variable (build failure with WERROR=1)

* Fix remaining build failures
  • Loading branch information
DenisVieriu97 authored and skotapati committed Nov 8, 2022
1 parent 02a2ef6 commit 34cc4e9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aten/src/ATen/native/mps/operations/Copy.mm
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ static void copy_to_mps_stride_contig(at::Tensor& dst, const at::Tensor& src, bo
src_total_size = src.nbytes();
}

size_t dst_tensor_nbytes = dst_.is_view() ? at::detail::computeStorageNbytesContiguous(dst_.sizes(), dst_.element_size(), dst_.storage_offset()) :
dst_.nbytes();

const size_t size_to_copy = src.nbytes();
const void* host_src = static_cast<char *>(src.storage().data()) + src_byte_offset;

Expand Down

0 comments on commit 34cc4e9

Please sign in to comment.