Skip to content

Commit 8ad8a2e

Browse files
zhxchen17facebook-github-bot
authored andcommitted
Serialize storage_offset in sym int. (#2267)
Summary: Pull Request resolved: #2267 as title. bypass-github-export-checks Reviewed By: tugsbayasgalan, angelayi Differential Revision: D54553809 fbshipit-source-id: cf6025f6995eaba4342f7209c4b7933e790e8932
1 parent 61a69d5 commit 8ad8a2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci/docker/ci_commit_pins/pytorch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f5b99976adcbb01fd71bd0a39ea15bdac6c9e48a
1+
export-D54553770

exir/serde/export_serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def serialize_tensor_meta(t: torch.Tensor) -> TensorMeta:
220220
requires_grad=t.requires_grad,
221221
device=Device(type=t.device.type, index=t.device.index),
222222
strides=[serialize_sym_int(s) for s in t.stride()],
223-
storage_offset=0,
223+
storage_offset=serialize_sym_int(0),
224224
layout=_TORCH_TO_SERIALIZE_LAYOUT[t.layout],
225225
)
226226

0 commit comments

Comments
 (0)