Skip to content

Commit 4f11d93

Browse files
zhxchen17facebook-github-bot
authored andcommitted
Serialize storage_offset in sym int.
Summary: as title. Differential Revision: D54553809
1 parent e7197a1 commit 4f11d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)