Skip to content

Commit 57aedf0

Browse files
committed
Update on "[executorch][schema] Add 'EXTERNAL' to DataLocation in schema"
To indicate if a tensor is external to the PTE file or not. Currently, we can also use the existence of 'fqn' to determine if a tensor is external or not. I think it's better to have a specific location field as fqn may be required for cases besides external tensor storage. Differential Revision: [D66523171](https://our.internmc.facebook.com/intern/diff/D66523171/) [ghstack-poisoned]
2 parents 6096fcf + 7c0d552 commit 57aedf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exir/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ExtraTensorInfo:
5555
Check program.fbs for explanations of this enum.
5656
"""
5757

58-
mutable_data_segments_idx: Optional[int] = 0
58+
mutable_data_segments_idx: int = 0
5959
fully_qualified_name: Optional[str] = None
6060
location: Optional[DataLocation] = None
6161

0 commit comments

Comments
 (0)