Skip to content

Commit 4351d09

Browse files
zdevitofacebook-github-bot
authored andcommitted
Fix error message in setStorage (pytorch#53198)
Summary: Pull Request resolved: pytorch#53198 Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D26830030 Pulled By: zdevito fbshipit-source-id: 34d383c4561bba88dee6d570cbd22bd58a3fe856
1 parent fee2635 commit 4351d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/native/Resize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static inline void checkInBoundsForStorage(
9494
", and itemsize ",
9595
data_type.itemsize(),
9696
" requiring a storage size of ",
97-
storage_size_bytes,
97+
storage_size_bytes + storage_offset_bytes,
9898
" are out of bounds for storage of size ",
9999
new_storage_size_bytes);
100100
}

0 commit comments

Comments
 (0)