diff --git a/devtools/bundled_program/schema/scalar_type.fbs b/devtools/bundled_program/schema/scalar_type.fbs deleted file mode 100644 index 47e338627a4..00000000000 --- a/devtools/bundled_program/schema/scalar_type.fbs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Meta Platforms, Inc. and affiliates. - -// -// See README.md before modifying this file. -// - -namespace executorch_flatbuffer; - -// The scalar data type. -// Must match executorch/runtime/core/portable_type/tensor_impl.h -enum ScalarType : byte { - BYTE = 0, - CHAR = 1, - SHORT = 2, - INT = 3, - LONG = 4, - HALF = 5, - FLOAT = 6, - DOUBLE = 7, - BOOL = 11, - QINT8 = 12, - QUINT8 = 13, - QINT32 = 14, - BFLOAT16 = 15, - QUINT4X2 = 16, - QUINT2X4 = 17, - BITS16 = 22, - FLOAT8E5M2 = 23, - FLOAT8E4M3FN = 24, - FLOAT8E5M2FNUZ = 25, - FLOAT8E4M3FNUZ = 26, - UINT16 = 27, - UINT32 = 28, - UINT64 = 29, - // Types currently not implemented. - // COMPLEXHALF = 8, - // COMPLEXFLOAT = 9, - // COMPLEXDOUBLE = 10, - // BITS1x8 = 18, - // BITS2x4 = 19, - // BITS4x2 = 20, - // BITS8 = 21, -} diff --git a/devtools/bundled_program/schema/scalar_type.fbs b/devtools/bundled_program/schema/scalar_type.fbs new file mode 120000 index 00000000000..113e3a2ff05 --- /dev/null +++ b/devtools/bundled_program/schema/scalar_type.fbs @@ -0,0 +1 @@ +../../../schema/scalar_type.fbs \ No newline at end of file diff --git a/devtools/etdump/scalar_type.fbs b/devtools/etdump/scalar_type.fbs deleted file mode 100644 index 47e338627a4..00000000000 --- a/devtools/etdump/scalar_type.fbs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Meta Platforms, Inc. and affiliates. - -// -// See README.md before modifying this file. -// - -namespace executorch_flatbuffer; - -// The scalar data type. -// Must match executorch/runtime/core/portable_type/tensor_impl.h -enum ScalarType : byte { - BYTE = 0, - CHAR = 1, - SHORT = 2, - INT = 3, - LONG = 4, - HALF = 5, - FLOAT = 6, - DOUBLE = 7, - BOOL = 11, - QINT8 = 12, - QUINT8 = 13, - QINT32 = 14, - BFLOAT16 = 15, - QUINT4X2 = 16, - QUINT2X4 = 17, - BITS16 = 22, - FLOAT8E5M2 = 23, - FLOAT8E4M3FN = 24, - FLOAT8E5M2FNUZ = 25, - FLOAT8E4M3FNUZ = 26, - UINT16 = 27, - UINT32 = 28, - UINT64 = 29, - // Types currently not implemented. - // COMPLEXHALF = 8, - // COMPLEXFLOAT = 9, - // COMPLEXDOUBLE = 10, - // BITS1x8 = 18, - // BITS2x4 = 19, - // BITS4x2 = 20, - // BITS8 = 21, -} diff --git a/devtools/etdump/scalar_type.fbs b/devtools/etdump/scalar_type.fbs new file mode 120000 index 00000000000..610c723c8a1 --- /dev/null +++ b/devtools/etdump/scalar_type.fbs @@ -0,0 +1 @@ +../../schema/scalar_type.fbs \ No newline at end of file diff --git a/extension/flat_tensor/serialize/scalar_type.fbs b/extension/flat_tensor/serialize/scalar_type.fbs deleted file mode 100644 index cd3850e9f09..00000000000 --- a/extension/flat_tensor/serialize/scalar_type.fbs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Meta Platforms, Inc. and affiliates. - -// -// See executorch/schema/README.md before modifying this file. -// - -// TODO(T207893511): sync scalar_type.fbs copies across ExecuTorch repo. -namespace executorch_flatbuffer; - -// The scalar data type. -// Must match executorch/runtime/core/portable_type/tensor_impl.h -enum ScalarType : byte { - BYTE = 0, - CHAR = 1, - SHORT = 2, - INT = 3, - LONG = 4, - HALF = 5, - FLOAT = 6, - DOUBLE = 7, - BOOL = 11, - // TODO(jakeszwe): Verify these are unused and then remove support - QINT8 = 12, - QUINT8 = 13, - QINT32 = 14, - BFLOAT16 = 15, - QUINT4X2 = 16, - QUINT2X4 = 17, - BITS16 = 22, - // Types currently not implemented. - // COMPLEXHALF = 8, - // COMPLEXFLOAT = 9, - // COMPLEXDOUBLE = 10, - // BITS1x8 = 18, - // BITS2x4 = 19, - // BITS4x2 = 20, - // BITS8 = 21, -} diff --git a/extension/flat_tensor/serialize/scalar_type.fbs b/extension/flat_tensor/serialize/scalar_type.fbs new file mode 120000 index 00000000000..113e3a2ff05 --- /dev/null +++ b/extension/flat_tensor/serialize/scalar_type.fbs @@ -0,0 +1 @@ +../../../schema/scalar_type.fbs \ No newline at end of file