Skip to content

Commit 46e4399

Browse files
zhxchen17facebook-github-bot
authored andcommitted
Serialize storage_offset in sym int. (#2267)
Summary: as title. Reviewed By: tugsbayasgalan Differential Revision: D54553809
1 parent e7197a1 commit 46e4399

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)