tag | 164e59a784dac90f64c51829679f0c4fddd2e43a | |
---|---|---|
tagger | Eric Kunze <eric.kunze@arm.com> | Tue Sep 12 21:18:20 2023 -0700 |
object | 0a934e6e1ca8c52012b3ea7eda408eb640f9bdde |
TOSA MLIR Translator 0.80 Release Add support for new operators DIM operator for shape inference ERF activation function New attributes for RESCALE function Add precommit to verify clang-format has been run Data type cleanup to align with TOSA specification
commit | 0a934e6e1ca8c52012b3ea7eda408eb640f9bdde | [log] [tgz] |
---|---|---|
author | Eric Kunze <eric.kunze@arm.com> | Tue Sep 12 17:16:22 2023 -0700 |
committer | Eric Kunze <eric.kunze@arm.com> | Tue Sep 12 17:16:22 2023 -0700 |
tree | 10420e2e86f30d49831a657847c578b1ce61d566 | |
parent | 815472c4038be0386bf4ebfc817f923805cdb43a [diff] |
Update serialization lib to v0.80 release Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ia581eeeb1b1b9cc4db3b2a5992d26238b3d1b4fb
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.