Skip to content
This project is mirrored from https://review.mlplatform.org/tosa/specification. Pull mirroring updated .
  1. Oct 29, 2021
  2. Oct 28, 2021
    • Eric Kunze's avatar
      Readability fixes for pseudocode · 82f19e2a
      Eric Kunze authored
      Avoid use of acc for variables when they are not convolution
      accumulators.
      
      Use argument types appropriately.
      Add missing pseudocode for some MI operators
      
      Change-Id: I9113f9228dbcafb85206bcc39310e9599cb12c08
      82f19e2a
    • Eric Kunze's avatar
      Clarify CLAMP pseudocode · 3fe52563
      Eric Kunze authored
      CLAMP does not do any zero point modification of its
      clamp limits. Callers to CLAMP should provide values with the
      zero-point accounted for in the arguments.
      
      Change-Id: I27ee468ecd5ab53e33dcbac9c91b705b39e49f96
      3fe52563
    • Eric Kunze's avatar
      Remove zp subtraction from tensor_read pseudocode · 3170439f
      Eric Kunze authored
      Operators which use the zero-point functionalty for 8-bit integer
      processing are updated to do the zero-point subtract in their
      pseudocode.
      
      Note that the PAD operator no longer takes a zero point argument,
      and instead requires callers to account for the zero point in the
      pad_const argument.
      
      Change-Id: I3bca1cae85aa2093000c420f0433633c347a29de
      3170439f
  3. Oct 21, 2021
  4. Oct 18, 2021
  5. Oct 15, 2021
  6. Oct 12, 2021
  7. Oct 08, 2021
  8. Oct 04, 2021
    • Eric Kunze's avatar
      Move quantization parameters into argument tables · b6335b82
      Eric Kunze authored
      The TOSA specification doesn't have quantized types.
      Without those types, it is cleaner to move effects of quantization
      such as the zero points into the standard list of arguments, rather
      than existing as a separate table.
      
      Change-Id: I18ea2959e9d3e4a3e9a0ead7a8ca319bb4426a47
      b6335b82
  9. Sep 29, 2021
    • Eric Kunze's avatar
      Allow PAD operator to pad with non-zero · c949f8a3
      Eric Kunze authored
      
      
      PAD now takes an additional attribute, with the padding value.
      Will generally be zero, but other values are allowed.
      
      tensor_read now requires the coordinates to be within the
      given tensor, with unpredictable behavior occurring if an access
      outside of the tensor occurs. Callers of tensor_read are expected
      to check the coordinates and take the appropriate action. The
      primary impact of this is to move the responsibility for padding to
      each operator. In practice, this is expected to not be a functional
      change, but a cleanup to make the behavior more clear.
      
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      Change-Id: I4f21ca9a13d82d422bbd66c400f23aa9a0bd2aa0
      c949f8a3
  10. Sep 27, 2021
  11. Sep 24, 2021
  12. Sep 16, 2021
    • Eric Kunze's avatar
      Clarify range limitations for tensors · 173fc16f
      Eric Kunze authored
      
      
      Catch zero and negative sized tensors.
      Clarify configuration of bool_t in the reference model.
      int4_t limitations on -8 to stay symmetric around 0.
      Pad values must be >= 0.
      Stride,dilation values must be >= 1.
      
      Change-Id: Idb6ef740f855912a8340475ba319816f90c9b051
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      173fc16f
  13. Sep 03, 2021
  14. Aug 23, 2021
    • Eric Kunze's avatar
      Fix pooling argument tables · 8f57f9e0
      Eric Kunze authored
      
      
      Make the input tensor shape dimensions correct for the pseudocode.
      Clarify the count used for average pooling only includes
      valid elements.
      Remove stale reference to PLACEHOLDER nodes.
      
      Change-Id: Ia0b9f0aa404008c6a36671da12188cb0999712d4
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      8f57f9e0
  15. Jul 13, 2021
  16. Jun 24, 2021
  17. Jun 17, 2021
  18. May 26, 2021
  19. May 21, 2021
  20. May 20, 2021
  21. Apr 14, 2021
  22. Apr 01, 2021
  23. Mar 23, 2021
  24. Mar 18, 2021
  25. Mar 16, 2021
    • Eric Kunze's avatar
      Add 8-bit support to TABLE · 71b02b19
      Eric Kunze authored
      
      
      It is challenging to work back from the RESCALE->TABLE->RESCALE
      for a simple 8-bit lookup. This adds support to TOSA for a
      simple direct 256 entry 8-bit lookup table for the TABLE operator.
      
      The 16-bit interpolated table is still required for a conformant
      implementation.
      
      Change-Id: I0ef218444f0b57b880aa8d1c7e96efedae72eb53
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      71b02b19
    • Eric Kunze's avatar
      Note limits on axis parameter · 67ed0385
      Eric Kunze authored
      
      
      This also adds a restriction on CONCAT to have all inputs be the
      same rank.
      
      Update the ARGMAX pseudocode to handle corner cases properly and
      use axis/rank consistent with other operators.
      
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      Change-Id: I941ac172ee79424ac04d562cedebb75da76659a5
      67ed0385
  26. Mar 11, 2021
    • Eric Kunze's avatar
      Make pseudocode block tags consistent · 839830a7
      Eric Kunze authored
      
      
      They are all now [source,c++] and use ---- as the
      delimiter.
      
      Also made the pseudocode indentation consistent (4 spaces)
      in the introduction sections.
      
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      Change-Id: I1287a60cfeae8b7e3c63b9fc8885b1ebf3d3386d
      839830a7
    • Eric Kunze's avatar
      Adjust pseudocode types to account for zero point · 8e4a9d33
      Eric Kunze authored
      When reading tensor values with zero point, the returned value
      has one more bit than the original to account for zero point.
      
      Update cases of apply_clip to properly represent the types
      involved.
      
      Change-Id: I60c17b1b244c34b4f04f042807936ae0f282ce93
      8e4a9d33
  27. Mar 08, 2021
    • Eric Kunze's avatar
      Consistency cleanup · 1e9ba65f
      Eric Kunze authored
      
      
      Attempt to get consistent across the pseudocode.
      Change the data types to all be intN_t instead of some cases of intN.
      Use float_t as the general floating point data type.
      Be consistent on use of the term "floating-point"
      Move general pseudocode helpers to their own section.
      
      Change-Id: Ie77666cd3ee438c71f39c62b9c424fe687b0bb51
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      1e9ba65f
  28. Mar 03, 2021
  29. Feb 09, 2021
  30. Feb 05, 2021
  31. Jan 27, 2021
    • Eric Kunze's avatar
      Update elementwise operator overview · f8bd5864
      Eric Kunze authored
      
      
      Elementwise operators no longer scale their inputs to a
      common range. The elementwise introductory section reflected
      the old behavior.
      
      Also clear up some language on the unary functions.
      
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      Change-Id: I86bf9da8b51e9a64e4fe6766e01f0c35d43d805a
      f8bd5864
  32. Jan 26, 2021
  33. Jan 25, 2021
    • Eric Kunze's avatar
      Remove aint8 type · 2dce0d02
      Eric Kunze authored
      
      
      The aint8 type represented an asymmetrically quantized range.
      With the change to move scaling fully into the RESCALE operator,
      the aint8 and int8 types didn't have significant differences in
      their use with operators. Unifying to a single data type makes
      things simpler.
      
      Signed-off-by: Eric Kunze's avatarEric Kunze <eric.kunze@arm.com>
      Change-Id: I3ee89cbdafdc61293ef1f1bec52398d744e716a1
      2dce0d02
  34. Jan 13, 2021
Loading