1. 04 Jan, 2023 1 commit
  2. 13 Dec, 2022 1 commit
  3. 08 Dec, 2022 2 commits
  4. 07 Dec, 2022 1 commit
  5. 06 Dec, 2022 1 commit
  6. 02 Dec, 2022 1 commit
    • Charlie Lin's avatar
      Dynamic ref pooling (#1449) · 0e40ebaa
      Charlie Lin authored
      Extends the pooling operators for dynamic shape inputs
      
      AveragePooling
      GlobalAveragePooling
      MaxPooling
      GlobalMaxPooling
      LpNormPooling
      GlobalLpNormPooling
      y.github.com>
      0e40ebaa
  7. 28 Nov, 2022 1 commit
  8. 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
  9. 10 Nov, 2022 1 commit
    • 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
  10. 04 Nov, 2022 1 commit
    • Ted Themistokleous's avatar
      Refactor parse_if tests to use add_ vs insert_ instructions and fix returns · 638ff250
      Ted Themistokleous authored
      Change things in the test cases so that we're not just replicating what
      the code does but use add_instruction to dictate what we should expect
      for the output of fixing empty const cases.
      
      Had to also switch an insert to add of a literal in the empty case to achieve
      this in parse_if as well.
      
      Moved the return instructions to the end of each subgraph to also fix readability
      of each test.
      638ff250
  11. 02 Nov, 2022 1 commit
    • Ted Themistokleous's avatar
      Change Unsqueeze to squeeze to parse_if for trailing dimensions · b5d1db2e
      Ted Themistokleous authored
      Default to smaller dimension with trailing 1 case instead of unsqueezing to
      the larger dimension.
      
      More analysis on other networks concludes that when putting in two operands to
      and IF block, the output should take the smaller of the shapes instead of the larger
      
      Modified tests in onnx_test.cpp to parse to the correct output as well.
      b5d1db2e
  12. 01 Nov, 2022 1 commit
  13. 27 Oct, 2022 2 commits
  14. 26 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      Fix for parse_split to handle in newer split op · 139f1ddd
      Ted Themistokleous authored
      Newer split moves the split attribute to an input. In this case we check the
      number of input args then.
      
      This changes allows us to move the accumulte check to outside each conditional branch
      Added more debug on this as well to show more details on this failure mode.
      
      Adds an additional test case using a generated split-13 operator styled
      test.
      139f1ddd
  15. 21 Oct, 2022 2 commits
  16. 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
  17. 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
  18. 18 Oct, 2022 4 commits
  19. 17 Oct, 2022 4 commits
  20. 14 Oct, 2022 1 commit
  21. 13 Oct, 2022 6 commits
  22. 08 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      Got model past if sequence but failing unit tests still · ea2d51bf
      Ted Themistokleous authored
      - Gets past to the split section of the resnext model
      - adding outline seems to solve if issues but verify calls broken
      - Referencing wrong element now instead of output of correct if block?
      - Need to determine proper output through verify tests.
      - Modified protobuf to handle case of extra 1 to "vectorize" scalar
      - Modified verify/tests to get things to "work", may need to be revised further.
      ea2d51bf
  23. 07 Oct, 2022 1 commit
    • Ted Themistokleous's avatar
      Get empty shapes working for parse_IF operator · abd3d63e
      Ted Themistokleous authored
      - Update if_then/else_empty test protobuff and cases
      - Need to update rand() vector used
      - Make y empty instead of x for if_else_empty_test.onnx
      - Regenerate protobufs with updates
      - Add changes to handle empty/scalar input branch size to if operator.
      - Add case where if both branches empty throw an error.
      - Update verify tests with gold vectors and new shapes for empty input vec
        which we handle like a scalar before broadcasting
      abd3d63e
  24. 05 Oct, 2022 2 commits
    • Ted Themistokleous's avatar
      Add test files, protobufs and verification tests that capture errors with IF operator · 7c8c3bee
      Ted Themistokleous authored
      - Verification tests that test each then/else branches for parsed IF operator
      - Testing empty shape tensors for one branch -> output must be the other branch's shape
      - Testing trailing 1 shape for one branch -> output must be union of both inputs
      
      Current issue with IF operator is that we can't handle training vectors that match
      in size correclty while also running into issues with empty inputs for one of the
      branches for size/type checks.
      7c8c3bee
    • Ted Themistokleous's avatar
      Add additional test coverage for if_then case in verify · c1b0030b
      Ted Themistokleous authored
      This seemed to be missing, just leveraging the existing protobuf made
      to test parsing of if_then_test.onnx for this and using the tensor of all
      ones to default to an ADD operation to ensure cond =1 is being handled and parsed
      in correctly.
      c1b0030b
  25. 26 Sep, 2022 1 commit
    • Charlie Lin's avatar
      Rewrite ONNX parse batch norm (#1362) · c00f8202
      Charlie Lin authored
      Rewrites the BatchNormalization ONNX operator into other MIGX operators
      - Added handling of 1D input tensor case (edge case in ONNX spec)
      Removes the spatial and per_activation functionality (not in the ONNX spec)
      - Did not remove the batch_norm_inference related code as the TensorFlow parser still uses it
      - Can remove that code when the TF version is updated
      c00f8202