Skip to content
This project is mirrored from https://review.mlplatform.org/tosa/serialization_lib. Pull mirroring updated .
  1. Apr 19, 2024
  2. Apr 18, 2024
  3. Apr 09, 2024
  4. Apr 08, 2024
    • Tai Ly's avatar
      Add conversions of U8 to/from BF16 and FP8 · ce911a2f
      Tai Ly authored
      
      
      Adds type to PadAttribute and ClampAttribute so their pad_const
      and max_val/min_val can be deserialized according to type
      
      Adds conversion functions of U8 arrays to/from BF16/FP8 values
      Also, refactor and expose TosaSerializer.convertDataToUint8Vec
      for converting dtype/data to uint8 list for serialization
      And modify convertDataToUint8Vec to serialize bf16 values into
      2 bytes each, and serialize fp8 values into single bytes each.
      
      Signed-off-by: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: I05659e8187c76d359f1cc9f71c8c23cafd0e877f
      ce911a2f
  5. Apr 04, 2024
  6. Mar 13, 2024
  7. Mar 11, 2024
    • Tai Ly's avatar
      [serialization_lib] Fix Clamp and Pad Attributes · 0b6d7c27
      Tai Ly authored and Eric Kunze's avatar Eric Kunze committed
      
      
      This patch implements following changes to attribute fields:
      - PadAttribute: delete padding field, replace pad_const_int
      	and pad_const_fp fields by pad_const, a field of
      	ubyte array
      - ClampAttribute: replace min_int, max_int, min_fp and max_fp
      	fields by min_val and max_val, fields of ubyte arrays
      - RescaleAttribute: delete multiplier and shift fields
      
      Signed-off-by: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: I5b075d29677cffca9ff2292708141d48410e7e72
      0b6d7c27
  8. Feb 27, 2024
  9. Feb 22, 2024
    • Tai Ly's avatar
      [serialization_lib] Align to Tosa Spec · 81db8ee8
      Tai Ly authored
      
      
      removed attributes for Reshape, Slice and Tile Ops
      renamed field accum_dtype to acc_type,
      renamed then_branch/else_branch to then_graph/else_graph
      renamed cond_branch/body_branch to cond_graph/body_graph
      
      Signed-off-by: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: I2001f19519987d9e64c18b1f11762f9d3b9be4ec
      81db8ee8
  10. Feb 20, 2024
  11. Feb 08, 2024
  12. Feb 06, 2024
  13. Feb 02, 2024
  14. Jan 23, 2024
  15. Jan 12, 2024
  16. Jan 03, 2024
  17. Nov 21, 2023
  18. Nov 16, 2023
  19. Nov 13, 2023
  20. Nov 09, 2023
  21. Nov 07, 2023
    • Davide Grohmann's avatar
      Allow serialization_lib to use an external flatbuffers target · aac87834
      Davide Grohmann authored
      
      
      Before this change the only way to build the serialization_lib was to
      have the flatbuffers lib pre-built before calling cmake or to allow
      serialization_lib to build its own flatbuffers library.  This commit
      make sure that you can build serialization_lib as part of the cmake
      build that builds flatbuffers (not in advance) by checking that
      flatbuffers is in the TARGET list.  In that case it is simply linked
      by the serialization_lib library.
      
      Signed-off-by: Davide Grohmann's avatarDavide Grohmann <davide.grohmann@arm.com>
      Change-Id: I5a9d5f263ccfb36273977d6e6a2c8083598b0afb
      aac87834
  22. Nov 01, 2023
  23. Sep 21, 2023
  24. Sep 19, 2023
  25. Sep 18, 2023
  26. Sep 15, 2023
  27. Sep 14, 2023
  28. Sep 07, 2023
  29. Sep 06, 2023
  30. Aug 23, 2023
    • Tai Ly's avatar
      Add is_unranked flag to Tensors · c6939a4d
      Tai Ly authored
      
      
      This adds a bool field, is_unranked to TosaTensor in tosa.fbs
      to indicate whether a tensor with shape = {} is an unranked tensor
      or an 0-D tensor.
      For older tosa files without this field, the default value is false.
      
      Signed-off-by: default avatarTai Ly <tai.ly@arm.com>
      Change-Id: I86950050b522565509863c483cd3a3c1c50f8f69
      c6939a4d
  31. Aug 22, 2023
  32. Aug 21, 2023
  33. Aug 18, 2023
  34. Aug 15, 2023
  35. Aug 14, 2023
  36. Aug 12, 2023
  37. Aug 10, 2023
  38. Aug 02, 2023
  39. Jul 27, 2023
Loading