1. 10 Nov, 2022 2 commits
    • Ted Themistokleous's avatar
      Update src/onnx/parse_if.cpp · 6f86d89d
      Ted Themistokleous authored
      
      
      fix comment for sub graph throw
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      6f86d89d
    • Ted Themistokleous's avatar
      Simplify parse_if to remove literal and broadcasting for empty branches · 62c746eb
      Ted Themistokleous authored
      Just grab the last output from the non empty branch and use the identity
      operator to get the proper shape for the output branch. In the case of
      an empty branch (empty tensor, of some type) this tends to mean "Do nothing"
      so we're folding the output of the other flow branch here, and thus if somehow,
      we do reach this at eval, should throw an error signalling either one of two things
      
      1. Onnx model is invalid
      2. The model has run into an error condition with its control flow.
      
      Since IF is an odd operator that can adjust axes, and other operators in a data driven
      fashion, this would serve as a check at compile and or/runtime.
      62c746eb
  2. 07 Nov, 2022 1 commit
  3. 06 Nov, 2022 1 commit
  4. 04 Nov, 2022 2 commits
  5. 02 Nov, 2022 3 commits
  6. 01 Nov, 2022 2 commits
  7. 28 Oct, 2022 3 commits
  8. 27 Oct, 2022 2 commits
  9. 26 Oct, 2022 3 commits
  10. 24 Oct, 2022 1 commit
  11. 21 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      Fix parse_if to handle multi output constant branches · 2ae4c715
      Ted Themistokleous authored
      - Initial fix to handle scalars on input for empty constant values
      - Using scalar, multibroadcast, contiguous
      - Fixed appropriate unit tests for simple single output constants
      - Added unit tests for multi if outputs.
      
      - TODO - multibroadcast to handle scalar so we don't use scalar
      2ae4c715
  12. 19 Oct, 2022 2 commits
  13. 18 Oct, 2022 3 commits
  14. 17 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      More review changes/fixes · d8ee02b9
      Ted Themistokleous authored
      - Handle checks for each IF output
      - add const to inputs of all_but_last_dims_equal
      - add std::equal instead of using equal
      - Use .back() for vectors in getting last value
      - Use input().front() instead of prev(prev()) when replacing the last value.
      d8ee02b9
  15. 15 Oct, 2022 1 commit
  16. 14 Oct, 2022 5 commits
  17. 13 Oct, 2022 5 commits
  18. 12 Oct, 2022 2 commits