diff options
author | Eric Kunze <eric.kunze@arm.com> | 2024-03-19 13:55:38 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2024-03-19 21:03:04 +0000 |
commit | c53436e4933c50c7465712590778ca283e8c07c5 (patch) | |
tree | c81040bbd5d7203082ef3b7e038b3058a619b2f0 /include | |
parent | 14e33564c7457ef0c0d0f5e6577c1036c0471866 (diff) | |
download | serialization_lib-c53436e4933c50c7465712590778ca283e8c07c5.tar.gz |
Revert "[serialization_lib] Add support for FP8E4M3 and FP8E5M2"
This reverts commit a029f1f02707f40f6990df53fd4f56684490d58f.
This commit was not meant to be included in the 0.90 branch.
Change-Id: I5b252f2603a7554efab2b997faaf2b59d62ee3cd
Diffstat (limited to 'include')
-rw-r--r-- | include/tosa_generated.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/tosa_generated.h b/include/tosa_generated.h index b5a8bd5..2ecd35a 100644 --- a/include/tosa_generated.h +++ b/include/tosa_generated.h @@ -116,13 +116,11 @@ enum DType : uint32_t { DType_FP16 = 10, DType_BF16 = 11, DType_SHAPE = 12, - DType_FP8E4M3 = 13, - DType_FP8E5M2 = 14, DType_MIN = DType_UNKNOWN, - DType_MAX = DType_FP8E5M2 + DType_MAX = DType_SHAPE }; -inline const DType (&EnumValuesDType())[15] { +inline const DType (&EnumValuesDType())[13] { static const DType values[] = { DType_UNKNOWN, DType_BOOL, @@ -136,15 +134,13 @@ inline const DType (&EnumValuesDType())[15] { DType_UINT16, DType_FP16, DType_BF16, - DType_SHAPE, - DType_FP8E4M3, - DType_FP8E5M2 + DType_SHAPE }; return values; } inline const char * const *EnumNamesDType() { - static const char * const names[16] = { + static const char * const names[14] = { "UNKNOWN", "BOOL", "UINT8", @@ -158,15 +154,13 @@ inline const char * const *EnumNamesDType() { "FP16", "BF16", "SHAPE", - "FP8E4M3", - "FP8E5M2", nullptr }; return names; } inline const char *EnumNameDType(DType e) { - if (::flatbuffers::IsOutRange(e, DType_UNKNOWN, DType_FP8E5M2)) return ""; + if (::flatbuffers::IsOutRange(e, DType_UNKNOWN, DType_SHAPE)) return ""; const size_t index = static_cast<size_t>(e); return EnumNamesDType()[index]; } |