tag | c4e36d3ae456c651c25d4e3580221eec28849f83 | |
---|---|---|
tagger | Eric Kunze <eric.kunze@arm.com> | Tue Dec 06 15:55:26 2022 -0800 |
object | d11ad56b77c9facaa0c3a3c84b3894af310e3d60 |
TOSA MLIR Translator v0.50.0 release tag - Add support for FP16 serialization - bugfixes
commit | d11ad56b77c9facaa0c3a3c84b3894af310e3d60 | [log] [tgz] |
---|---|---|
author | Eric Kunze <eric.kunze@arm.com> | Mon Dec 05 16:53:00 2022 -0800 |
committer | Eric Kunze <eric.kunze@arm.com> | Mon Dec 05 16:53:00 2022 -0800 |
tree | ad1cf040f0f1a82761f8bc391778f444c60d80f5 | |
parent | beb3ea0819794a9d835142065643a489917c3994 [diff] |
Update serialization library submodule to 0.50 In preparation for 0.50 release Change-Id: I2a66e5c68ba7f23334e5a542e16ee5336a1ae3de
The TOSA MLIR Translator repository implements translators between the TOSA MLIR dialect and serialized representations.
The current implementation supports serialization from MLIR form to flatbuffers. A deserializer from flatbuffers to MLIR form is in development.
##TOSA serialization library https://review.mlplatform.org/plugins/gitiles/tosa/serialization_lib The library includes a FlatBuffers schema and a C++ API for reading and writing a TOSA graph as a flatbuffer.
This repository does not currently build standalone. It must be included within another MLIR repository with a pass manager registering the passes implemented within this repository.
The included CMake rules can be used to add this repository as a submodule. The include/SerializationPasses.h enables MLIR pass registration inclusion.
If target "tosa_serialize" is linked correctly, you should able to see "--tosa-serialize" and "--tosa-serialize-json" options available in your MLIR pass manager/MLIR optimizer.
To serialize a TOSA MLIR graph to TOSA flatbuffer binary file:
<YOUR_MLIR_OPTIMIZER> --tosa-serialize <TOSA_MLIR_GRAPH>
--tosa-flatbuffer-filename <TOSA_FLATBUFFER_FILENAME>
To serialize a TOSA MLIR graph to TOSA flatbuffer JSON file:
<YOUR_MLIR_OPTIMIZER> --tosa-serialize <TOSA_MLIR_GRAPH>
--tosa-flatbuffer-schema <PATH_TO_TOSA_FLATBUFFER_SCHEMA>
--tosa-flatbuffer-filename <TOSA_FLATBUFFER_FILENAME>
where <PATH_TO_TOSA_FLATBUFFER_SCHEMA> is provided within the serialization library submodule in third_party/serialization_lib/schema/tosa.fbs
The TOSA MLIR Translator is licensed under Apache-2.0 with LLVM Exceptions.