Skip to content
This project is mirrored from https://review.mlplatform.org/tosa/tosa_mlir_translator. Pull mirroring failed .
Last successful update .
  1. May 26, 2023
  2. May 25, 2023
  3. May 06, 2023
    • Tai Ly's avatar
      Add BuildMlirFromTosaFile API · 04992e45
      Tai Ly authored
      
      
      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: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: Ia6c0202ef43ce5d37788cd459ed7c3f8424dd619
      04992e45
  4. Apr 26, 2023
    • Tai Ly's avatar
      serialize/deserialize while/if ops using regions · 8ffce6d6
      Tai Ly authored
      
      
      This changes serialization and deserialization of while and if ops
      to use regions instead of blocks.
      
      also changed deserialization to preserve original ordering such that:
      tosa1->deserialize->serialize->tosa2 => tosa1 == tosa2 most of the time.
      
      Signed-off-by: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: I539076788bdc466ba1881d955af349e6b4924ed8
      8ffce6d6
  5. Apr 25, 2023
  6. Apr 22, 2023
  7. Mar 16, 2023
  8. Mar 09, 2023
  9. Mar 07, 2023
  10. Mar 06, 2023
  11. Mar 02, 2023
  12. Feb 27, 2023
  13. Feb 24, 2023
  14. Feb 14, 2023
  15. Feb 08, 2023
  16. Feb 02, 2023
  17. Jan 28, 2023
  18. Jan 24, 2023
  19. Jan 13, 2023
  20. Jan 12, 2023
    • Jerry-Ge's avatar
      Add RegionBuilder to TOSA MLIR Translator · ab75f53f
      Jerry-Ge authored
      
      
      Rationale for making this change:
      - The original design only supports a single basicBlock which is no
      longer functionaly enough to support Control Flow operators like WhileOp
      or IFOp
      - Added another layer of abstraction of Region to support multiple
      basicBlocks + other corresponding fixes
      - There are other companion patches to make the above proposal work
        - Serialization Lib: Add TosaSerializationRegion to serialization_lib
        - Reference Model: Reference model update for control flow
      
      Signed-off-by: Jerry-Ge's avatarJerry Ge <jerry.ge@arm.com>
      Change-Id: Ic7eec3c32da87d409819365ba2dc7ef8b9619db4
      ab75f53f
  21. Dec 07, 2022
  22. Dec 06, 2022
  23. Oct 24, 2022
  24. Oct 13, 2022
  25. Oct 11, 2022
  26. Sep 14, 2022
  27. Sep 13, 2022
  28. Aug 30, 2022
  29. Aug 29, 2022
  30. Aug 04, 2022
  31. Jul 08, 2022
  32. Jun 16, 2022
  33. Jun 15, 2022
  34. Jun 13, 2022
  35. Jun 08, 2022
  36. May 21, 2022
  37. Feb 15, 2022
  38. Jan 19, 2022
  39. Jan 14, 2022
Loading