Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99ca1a7

Browse files
author
Github Executorch
committed
Add bfloat16 to scalar_type.fbs
1 parent b729d35 commit 99ca1a7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

devtools/bundled_program/schema/scalar_type.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum ScalarType : byte {
2121
QINT8 = 12,
2222
QUINT8 = 13,
2323
QINT32 = 14,
24+
BFLOAT16 = 15,
2425
QUINT4X2 = 16,
2526
QUINT2X4 = 17,
2627
BITS16 = 22,
@@ -35,7 +36,6 @@ enum ScalarType : byte {
3536
// COMPLEXHALF = 8,
3637
// COMPLEXFLOAT = 9,
3738
// COMPLEXDOUBLE = 10,
38-
// BFLOAT16 = 15,
3939
// BITS1x8 = 18,
4040
// BITS2x4 = 19,
4141
// BITS4x2 = 20,

devtools/etdump/scalar_type.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum ScalarType : byte {
2121
QINT8 = 12,
2222
QUINT8 = 13,
2323
QINT32 = 14,
24+
BFLOAT16 = 15,
2425
QUINT4X2 = 16,
2526
QUINT2X4 = 17,
2627
BITS16 = 22,
@@ -35,7 +36,6 @@ enum ScalarType : byte {
3536
// COMPLEXHALF = 8,
3637
// COMPLEXFLOAT = 9,
3738
// COMPLEXDOUBLE = 10,
38-
// BFLOAT16 = 15,
3939
// BITS1x8 = 18,
4040
// BITS2x4 = 19,
4141
// BITS4x2 = 20,

extension/flat_tensor/serialize/scalar_type.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ enum ScalarType : byte {
2323
QINT8 = 12,
2424
QUINT8 = 13,
2525
QINT32 = 14,
26+
BFLOAT16 = 15,
2627
QUINT4X2 = 16,
2728
QUINT2X4 = 17,
2829
BITS16 = 22,
2930
// Types currently not implemented.
3031
// COMPLEXHALF = 8,
3132
// COMPLEXFLOAT = 9,
3233
// COMPLEXDOUBLE = 10,
33-
// BFLOAT16 = 15,
3434
// BITS1x8 = 18,
3535
// BITS2x4 = 19,
3636
// BITS4x2 = 20,

schema/scalar_type.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum ScalarType : byte {
2121
QINT8 = 12,
2222
QUINT8 = 13,
2323
QINT32 = 14,
24+
BFLOAT16 = 15,
2425
QUINT4X2 = 16,
2526
QUINT2X4 = 17,
2627
BITS16 = 22,
@@ -35,7 +36,6 @@ enum ScalarType : byte {
3536
// COMPLEXHALF = 8,
3637
// COMPLEXFLOAT = 9,
3738
// COMPLEXDOUBLE = 10,
38-
// BFLOAT16 = 15,
3939
// BITS1x8 = 18,
4040
// BITS2x4 = 19,
4141
// BITS4x2 = 20,

0 commit comments

Comments
 (0)