1. 21 Nov, 2022 1 commit
    • Ted Themistokleous's avatar
      Add tupleVisitor for from_gpu · cfbd5e8b
      Ted Themistokleous authored
      Need this for when we debug and use MIGRAPHX_TRACE_EVAL() to show tuples
      
      Without this we break when reading our buffer due to the use of visit()
      
      Credit for Paul Fultz helping on this.
      cfbd5e8b
  2. 18 Nov, 2022 1 commit
  3. 17 Nov, 2022 2 commits
  4. 15 Nov, 2022 1 commit
  5. 14 Nov, 2022 1 commit
  6. 13 Nov, 2022 1 commit
    • Charlie Lin's avatar
      Dyn ref multibroadcast; dyn binary (#1423) · d73c6d7c
      Charlie Lin authored
      Updated Multibroadcast op to have a two input version for dynamic shapes
      Current dynamic shape broadcasting logic
      dynamic_dimensions must be the same or one of them is {1, 1, 0} or {1, 1, 1}
      Works for dyn-dyn, dyn-static, and static-static shape combinations
      Changed common.cpp for multibroadcasting for binary ops with dynamic shapes
      Extended binary.hpp for dynamic shapes to test the new common.cpp stuff
      d73c6d7c
  7. 11 Nov, 2022 1 commit
  8. 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
  9. 07 Nov, 2022 2 commits
  10. 06 Nov, 2022 1 commit
  11. 04 Nov, 2022 3 commits
  12. 02 Nov, 2022 4 commits
  13. 01 Nov, 2022 2 commits
  14. 31 Oct, 2022 1 commit
  15. 28 Oct, 2022 4 commits
  16. 27 Oct, 2022 3 commits
  17. 26 Oct, 2022 3 commits
  18. 25 Oct, 2022 1 commit
  19. 24 Oct, 2022 1 commit
  20. 21 Oct, 2022 3 commits
  21. 20 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      Add tests for valid multi output shapes going into IF operator · a27808b3
      Ted Themistokleous authored
      Adding test to validate what a "valid" multi input should look like and
      that we correctly handle trailing 1s and correctly sized outputs.
      
      Generated and added the two tests from gen_onnx.py with matching test
      in onnx_test.cpp
      
      -if_then_else_multi_output_shapes_test.onnx
      -if_then_else_multi_output_shapes_test2.onnx
      a27808b3
  22. 19 Oct, 2022 1 commit
    • Charlie Lin's avatar
      Refactor dynamic compute; Dynamic ref unary functions (#1407) · 693cb5d8
      Charlie Lin authored
      Refactor dynamic compute
      - add a compute_output_shape object that implicitly converts to a new dyn_output or shape object
      - dyn_output object can handle computing the static output shape of an operator given the input arguments shapes
        change an operator's compute function to argument compute(const dyn_output& dyn_out, std::vector<argument> args) to 
        use dyn_output object
      
      Dynamic ref unary functions
      -  Included these changes to have an example of the refactored dynamic compute being used
      -  Changes to unary base class to handle dynamic shapes
      -  Changed elu and leaky_relu to use unary base class and pointwise JIT
      693cb5d8