File tree Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ executorch_flatbuffer_ScalarType_enum_t get_flatbuffer_scalar_type(
55
55
return executorch_flatbuffer_ScalarType_DOUBLE;
56
56
case exec_aten::ScalarType::Bool:
57
57
return executorch_flatbuffer_ScalarType_BOOL;
58
+ case exec_aten::ScalarType::Bits16:
59
+ return executorch_flatbuffer_ScalarType_BITS16;
58
60
default :
59
61
ET_CHECK_MSG (
60
62
0 ,
Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ enum ScalarType : byte {
24
24
QINT32 = 14,
25
25
QUINT4X2 = 16,
26
26
QUINT2X4 = 17,
27
+ BITS16 = 22,
27
28
// Types currently not implemented.
28
29
// COMPLEXHALF = 8,
29
30
// COMPLEXFLOAT = 9,
30
31
// COMPLEXDOUBLE = 10,
31
32
// BFLOAT16 = 15,
33
+ // BITS1x8 = 18,
34
+ // BITS2x4 = 19,
35
+ // BITS4x2 = 20,
36
+ // BITS8 = 21,
32
37
}
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ class ScalarType(IntEnum):
26
26
BFLOAT16 = 15
27
27
QUINT4x2 = 16
28
28
QUINT2x4 = 17
29
- Bits16 = 22
29
+ BITS16 = 22
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def memory_format_enum(memory_format: torch.memory_format) -> int:
262
262
torch .qint32 : ScalarType .QINT32 ,
263
263
torch .bfloat16 : ScalarType .BFLOAT16 ,
264
264
torch .quint4x2 : ScalarType .QUINT4x2 ,
265
- torch .uint16 : ScalarType .Bits16 ,
265
+ torch .uint16 : ScalarType .BITS16 ,
266
266
}
267
267
268
268
Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ enum ScalarType : byte {
24
24
QINT32 = 14,
25
25
QUINT4X2 = 16,
26
26
QUINT2X4 = 17,
27
+ BITS16 = 22,
27
28
// Types currently not implemented.
28
29
// COMPLEXHALF = 8,
29
30
// COMPLEXFLOAT = 9,
30
31
// COMPLEXDOUBLE = 10,
31
32
// BFLOAT16 = 15,
33
+ // BITS1x8 = 18,
34
+ // BITS2x4 = 19,
35
+ // BITS4x2 = 20,
36
+ // BITS8 = 21,
32
37
}
You can’t perform that action at this time.
0 commit comments