tag | 78357435c473d173944aa582fc70730c8786396e | |
---|---|---|
tagger | Eric Kunze <eric.kunze@arm.com> | Mon Feb 05 23:00:22 2024 -0800 |
object | 05a243c3b8d01fe57aca9a5b9c1b835ee5d1e6b2 |
First commit post 0.90 branch
commit | 05a243c3b8d01fe57aca9a5b9c1b835ee5d1e6b2 | [log] [tgz] |
---|---|---|
author | Eric Kunze <eric.kunze@arm.com> | Mon Feb 05 23:24:23 2024 +0000 |
committer | Eric Kunze <eric.kunze@arm.com> | Mon Feb 05 23:24:23 2024 +0000 |
tree | 4234f8d634d2724343bd447a35d783e41d8625d5 | |
parent | b8770e86a6e5a2aafa0bd253c26b09cef82fdfbb [diff] |
Update serialization lib version to 0.100.0 draft Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I814c7edad659f82a4082b4b38b8ca151431843ad
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.