aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2024-04-19Update float8 code to support non-saturating modeWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I786aca0a2f137cebd446a3a71c8d6fe186286957
2024-04-08Add conversions of U8 to/from BF16 and FP8Tai Ly
Adds type to PadAttribute and ClampAttribute so their pad_const and max_val/min_val can be deserialized according to type Adds conversion functions of U8 arrays to/from BF16/FP8 values Also, refactor and expose TosaSerializer.convertDataToUint8Vec for converting dtype/data to uint8 list for serialization And modify convertDataToUint8Vec to serialize bf16 values into 2 bytes each, and serialize fp8 values into single bytes each. Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I05659e8187c76d359f1cc9f71c8c23cafd0e877f
2023-11-07Allow serialization_lib to use an external flatbuffers targetDavide Grohmann
Before this change the only way to build the serialization_lib was to have the flatbuffers lib pre-built before calling cmake or to allow serialization_lib to build its own flatbuffers library. This commit make sure that you can build serialization_lib as part of the cmake build that builds flatbuffers (not in advance) by checking that flatbuffers is in the TARGET list. In that case it is simply linked by the serialization_lib library. Signed-off-by: Davide Grohmann <davide.grohmann@arm.com> Change-Id: I5a9d5f263ccfb36273977d6e6a2c8083598b0afb
2023-01-04Remove serialization testEric Kunze
Too simple, did not provide much testing value Change-Id: I35b388ebae8d43d901781f4eefa20c6b83b96456
2022-10-04FP16 support in serializationJames Ward
* Allow serialization of fp16 data * Add package to support integrated half data-type (half_float::half), independent of native float: http://half.sourceforge.net/ * Allow passing of accumulate data-type in serialization Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I54357f02e3776d81958228f699ea5044f2014f4b
2022-08-25Modify CMakeLists to ease integration with Arm NN.Colm Donelan
* Add option to disable building test executables. * Add option to specify an external source of Flatbuffers library. * Allow third_party/flatbuffers to contain either source or prebuilt package. * Remove default STATIC and rely on cmake's BUILD_SHARED_LIBS. * Add PUBLIC_HEADERS to install target. * Specify use of GNU installation directory norms. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I780c3345b9e55ec7928b917648174c33fe29e7fb
2021-11-05Build flatbuffers into libtosa_serialization.aKevin Cheng
Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: Ic148f17caba347e1b3969b15a9373f9be9e39174
2021-04-26Initial commit of serialization library codeEric Kunze
Change-Id: Ie09a7245176aa799e59622e5118b145833b23590 Signed-off-by: Eric Kunze <eric.kunze@arm.com>