aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2024-02-22Add Tosa Sin/Cos operatorsJerry Ge
- Add Tosa Sin/Cos operators to the tosa_mlir_translator - Update thirdparty/serialization_lib hash Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: Iea24913d3b295f5ca9fc50488b963e0ab54b11bd
2024-01-18[tosa_mlir_translator] Add Shape Ops SupportTai Ly
- Add serialization/deserialization of tosa shape ops. - Changed TileOp's multiples from attribute to shape input. - Change 'shape' attribute of RESHAPE to an input Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I4329e621fd7637b1a3491c195fbda77d2a0ad23a
2023-09-07[tosa_mlir_translator] Support Tosa StatefulOpsv0.90a0Jerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I6ce5a917cada436f6a80e6d85e670d6cd44e01e9
2023-08-16Add DIM operator and its serialization/deserialization to TOSA MLIR translatorWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Idf45f0a68f551039cc40a69d90aa5c53098bc238
2023-08-01[tosa_mlir_translator] Rename Div Op to IntDivTai Ly
Rename Tosa Div Op to IntDiv Op in serialization and deserialization Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Iec2d1c4f91a77485f2a61984962872a386f131cb
2023-07-24Add Erf to tosa_mlir_translatorJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I5d173daf4330d4c4761175a7bd2362cd0bf4b420
2023-05-06Add BuildMlirFromTosaFile APITai Ly
This BuildMlirFromTosaFile API deserializes a tosa fbs or json file and returns a mlir module as OwningOpRef<ModuleOp> This also refactors the existing deserialization passes to use the new API, and then copy the deserialized module's main function into the existing function, and copy all attributes of the new function and new module into the existing function and module. This allows testing of the new API by running deserialization passes. Here is an example showing the attributes on the deserialized module and functions: module attributes {tf_saved_model.semantics, tosa.description = "Tosa FBS Converted", tosa.fbs_version = "0.70.0d"} { func.func @main(%arg0: tensor<1x256x256x3xui8> {tf_saved_model.index_path = ["input_0"]}) -> (tensor<1x1x17x3xf32> {tf_saved_model.index_path = ["output_0"]}) attributes {tf.entry_function = {inputs = "tosa_de serialized_input_0:0", outputs = "tosa_deserialized_output_0:0"}, tf_saved_model.exported_names = ["tosa_deserialized"]} { Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Ia6c0202ef43ce5d37788cd459ed7c3f8424dd619
2023-04-22Support translation of FFT2dLuke Hutton
Signed-off-by: Luke Hutton <luke.hutton@arm.com> Change-Id: I4aae94438380d394b9c13015aa69ac52f9b73f74
2023-03-06Add Tosa DeserializationTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I8b0220a8465e75b1accf6b0854e911a425730da6
2023-02-27Support translation of RFFT2dLuke Hutton
Signed-off-by: Luke Hutton <luke.hutton@arm.com> Change-Id: Ic69e006fb9369414f4174e5bb24adadae531775d
2022-05-20Update TOSA passesEric Kunze
Now works with LLVM hash 1cb299165c85 Primarily changes to match the upstream FuncOp move to the func dialect Change-Id: Ibc5c81c9f10d86d42970e2ec4885844826cd4868 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2022-02-15Align serialize passes with current LLVMEric Kunze
Remove FunctionPass Simplify getValues code Change-Id: I054466ccb480148b82d81d900e1e9ffb4560e8af Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2021-11-15First commit of tosa serialize passesKevin Cheng
Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: I1551017706f6e8af604792f48cdeb49b4da7ef0d