Skip to content

Commit f93b578

Browse files
tarun292facebook-github-bot
authored andcommitted
Add uint16 support in exir serde
Summary: Adding uint16 support in serialization after D64812253. Differential Revision: D65175529
1 parent 461d61d commit f93b578

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exir/serde/export_serialize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def _reverse_map(d: Dict[Any, Enum]):
148148
torch.complex128: ScalarType.COMPLEXDOUBLE,
149149
torch.bool: ScalarType.BOOL,
150150
torch.bfloat16: ScalarType.BFLOAT16,
151+
torch.uint16: ScalarType.UINT16
151152
}
152153

153154

exir/serde/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ScalarType(IntEnum):
3535
COMPLEXDOUBLE = 11
3636
BOOL = 12
3737
BFLOAT16 = 13
38-
38+
UINT16 = 14
3939

4040
class Layout(IntEnum):
4141
Unknown = 0

0 commit comments

Comments
 (0)