tag | 114b5fe3ac51c71c0ce2a979e6bd7e82faabc237 | |
---|---|---|
tagger | Eric Kunze <eric.kunze@arm.com> | Wed Mar 08 23:38:10 2023 -0800 |
object | e4673b91ede85918209297c525f36c4d9dc7e2aa |
TOSA 0.60.0 MLIR translator release tag - Add a deserialization pass to create an MLIR graph from serialized TOSA. - Add region support to improve control flow handling. - Add support for serializing unranked tensors. - Use DenseArrayAttr to align with MLIR. - Align to changes in TOSA specification.
commit | e4673b91ede85918209297c525f36c4d9dc7e2aa | [log] [tgz] |
---|---|---|
author | Eric Kunze <eric.kunze@arm.com> | Thu Mar 09 00:44:46 2023 +0000 |
committer | Eric Kunze <eric.kunze@arm.com> | Wed Mar 08 17:43:15 2023 -0800 |
tree | 3d1514e0112909ee598bdde765c04a186814f9f6 | |
parent | dd82bfeb3fabd1027d93d875f4c20261d4e93aaf [diff] |
Update serialization library to 0.60 version Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I2919607a4a625dd0fabab176b9452e21e937563b
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.