- 17 Nov, 2022 2 commits
-
-
Ted Themistokleous authored
Fix to stop types failing for logical_xor during our fusions.
-
Charlie Lin authored
Extends the ref contiguous operator to handle dynamic shapes Updates the eliminate_contiguous pass to use the dyn_output struct
-
- 13 Nov, 2022 1 commit
-
-
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
-
- 10 Nov, 2022 1 commit
-
-
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.
-
- 04 Nov, 2022 1 commit
-
-
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.
-
- 02 Nov, 2022 3 commits
-
-
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.
-
Paul Fultz II authored
Can be enabled via environment variable MIGRAPHX_ENABLE_NHWC
-
Paul Fultz II authored
-
- 01 Nov, 2022 1 commit
-
-
Ted Themistokleous authored
Newer split moves the split attribute to an input. In this case we check the number of input args then.
-
- 28 Oct, 2022 1 commit
-
-
Umang Yadav authored
Local Threads of multiples 32 were introduced in #1348 But LocalThreads that are not multiple of 64 are causing correctness issues.
-
- 27 Oct, 2022 3 commits
-
-
Chris Austen authored
Upgraded Dockerfiles and fixed tidy issues to make Ubuntu 20.04 and ROCm 5.3.0 the default
-
Ted Themistokleous authored
- Added cases to handle error cases of invalid splits for split-11 and split-13 - should solve issue with code coverage.
-
kahmed10 authored
updated GPU pad to now use JIT version. added range functions for JIT kernels.
-
- 26 Oct, 2022 2 commits
-
-
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.
-
Brian Pickrell authored
Fixes an observed regression error on certain Frozen Protobuf models due to PR 1280
-
- 21 Oct, 2022 2 commits
-
-
Ted Themistokleous authored
-
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
-
- 20 Oct, 2022 1 commit
-
-
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
-
- 19 Oct, 2022 2 commits
-
-
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
-
Umang Yadav authored
* use find2.0 for the convolution Co-authored-by:
Vasilii Filippov <DrizztDoUrden@users.noreply.github.com> Co-authored-by:
Chris Austen <causten@users.noreply.github.com>
-
- 18 Oct, 2022 5 commits
-
-
Paul Fultz II authored
* Enable non-standard shape * Use perfdb for non xdlops * Fix transpose+broadcast strides Co-authored-by:jungpark-mlir <jungwook.park@amd.com>
-
Ted Themistokleous authored
-
Ted Themistokleous authored
outline seems to be bugged, and going to be depreciated, thus switching to creating a new literal with the proper shape for the empty output branch.
-
Ted Themistokleous authored
This test should error out as, having different output shapes for each branch with one non empty is invalid. Changes to gen_onnx.py as well as generated onnx file provided
-
Ted Themistokleous authored
Add the testcase and onnx file generated to handle the case of two output shapes that vary in rank by one, with a trailing 1 but sub lengths are not equivalent
-
- 17 Oct, 2022 5 commits
-
-
Ted Themistokleous authored
This should be flagged as an error always for static inputs
-
Ted Themistokleous authored
- added changes to gen_onnx.py for different type, shape, and incompatible lens - added test cases that should except in onnx_test.cpp
-
Ted Themistokleous authored
- gen_onnx.py changes for onnx output of empty const input branches (seen in resnext50) - updated onnx_test.cpp to validate parsing of input. - new onnx files generated from onnx tests
-
Umang Yadav authored
hipMemset is causing random failure. hipMemsetAsync is doing the correct synchronization.
-
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.
-
- 14 Oct, 2022 1 commit
-
-
Charlie Lin authored
Allows for rank 2 tensors into batchnorm. Specifically when spatial dimensions are all 1 and removed
-
- 13 Oct, 2022 7 commits
-
-
Charlie Lin authored
Removes use_dynamic_same_auto_pad Change padding_mode to be used for dynamic padding Move compute_padded_shape to pad_calc.cpp as it will be used in other dynamic padding cases Fix same_lower compute_padded_shape bug and add a test.
-
Charlie Lin authored
Rewrites the TF batch norm like operators to other MIGX operators Removes the code related to batch_norm_inference
-
Ted Themistokleous authored
-
Ted Themistokleous authored
Hand verified results before running test using random data generated from the new protobuf files for this. Everything is correctly functionally within tolerances. Had to readjust input sizes to that of the .onnx file as one input is deliberately made smaller (without the trailing 1) for theses tests to test the case correctly
-
Ted Themistokleous authored
Fixes test which verifies how we interpret vectors with trailing ones, between input branches to an IF module block.
-
Ted Themistokleous authored
Update test for new generated onnx file, as well as using unsqueeze output for when we parse in a network with mismatched shapes with a trailing 1
-
Ted Themistokleous authored
Inverted logic when I wrote generated statements for these. Regenerated files
-
- 08 Oct, 2022 1 commit
-
-
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.
-
- 07 Oct, 2022 1 commit
-
-
Ted Themistokleous authored
Simplified algebraic operations (x*1), x*(-1), x/1, 0+x & x+0, x-0, 0-x, 0*x, x*0, and 0/x operations
-