- 25 Aug, 2023 1 commit
-
-
Khalique Ahmed authored
-
- 19 Jul, 2023 1 commit
-
-
Paul Fultz II authored
The find_reshaper is supposed to do this, but it doesnt work and there were no tests. So I updated for it to work and I added unit tests for it.
-
- 04 Apr, 2023 1 commit
-
-
shivadbhavsar authored
Bug found due to failing torch benchmark. Added test case to reproduce issue causing the model to error out on compile. Original logic results in the following error: AMDMIGraphX/src/include/migraphx/op/unsqueeze.hpp:128: normalize_compute_shape: UNSQUEEZE: Axis dimenstion is not divisible by step
-
- 13 Jan, 2023 1 commit
-
-
shivadbhavsar authored
This PR resolves the bug addressed in #1496.
-
- 13 Sep, 2022 1 commit
-
-
turneram authored
Improves performance for 4/6 GEMMs used by huggingface BERT models with batch_size>1 by using a non-batched rocBLAS call for GEMMs where the B input has a broadcasted batch dimension. The four verify tests added reflect the actual configurations used by bert-base-cased, with varied batch sizes. Also adds a matcher to simplify_reshapes to move multibroadcasts after concats.
-
- 17 Aug, 2022 1 commit
-
-
Paul Fultz II authored
* Horizontally fuse contiguous
-
- 07 Jul, 2022 1 commit
-
-
Paul Fultz II authored
Instead of just unsqueezing to an axis of 1 a step can be set to use instead. So instead of unsqueezing {3, 12} to {3, 1, 12} a step of 2 will unsqeeze to {3, 2, 6} instead
-
- 05 Jul, 2022 1 commit
-
-
Paul Fultz II authored
This reorders the transposes across slice to improve horizontal fusion for contiguous. This also improves eliminate_contiguous to remove contiguous better across splits.
-
- 22 Jun, 2022 1 commit
-
-
Ted Themistokleous authored
Updated each source file in the repo with the existing license.
-
- 03 Nov, 2021 1 commit
-
-
Umang Yadav authored
In migraphx, DepthToSpace (d2s) is implemented as reshape --> transpose --> contiguous --> reshape. If there is trailing binary pointwise operator after depthToSpace then, migraphx can move binary operator before contiguous and reshape of the depthtospce. So, it becomes reshape-->transpose-->binary_op-->contiguous-->reshape. Explicit contiguous wouldn't be required since binary_op outputs standard shape. So, it becomes reshape-->transpose-->binary-->reshape. simplify_reshapes already has matcher that can do this transformation. This PR adds test for cases like depthtospace +binary op. solves #905
-
- 28 Oct, 2021 1 commit
-
-
Umang Yadav authored
In migraphx, DepthToSpace (d2s) is implemented as reshape --> transpose --> contiguous --> reshape. This PR adds matcher to find d2s + unary pointwise ops. Application of the matcher moves the pointwise unary operation before the contiguous and reshape of the d2s. So it becomes reshape --> transpose --> unary --> contiguous --> reshape. Motivation is that, later pointwise module would be created out of unary --> contiguous --> reshape. Codegen for this pointwise module can write out buffer such that explicit contiguous and reshape wouldn't be required. This transformation is not always guaranteed to improve performance, since unary op will operate on non-standard shape. So, we would need some tuning mechanism to make decision. #905 pending PR for binary operations.
-
- 25 Aug, 2021 1 commit
-
-
Shucai Xiao authored
* always keep parameters * clang format * fix tidy error * clang format * add more unit tests to have more code coverage * fixed a bug to ensure get_parameter_names to return ordered parameter names * clang format * remove unnecessary print out * refine a code change * clang format * add a unit test to check parameter is not removed by dead code elimination * clang format * rename a function name Co-authored-by:Chris Austen <causten@users.noreply.github.com>
-
- 24 Aug, 2021 1 commit
-
-
Umang Yadav authored
* rename broadcast and multibroadcast output_lens attribute to out_lens attribute, and change tests and source code to reflect the same * change the reshape attribute from dims to out_lens * change transpose attribute's name from dims to perm to reflect better meaning * use permutation instead of perm for transpose clang formaating * use dims instead of out_lens for reshape clang formatting
-
- 23 Apr, 2021 1 commit
-
-
Shucai Xiao authored
* code backup * clang format * add a matcher related to the special resize case for optimization * clang format * code backup * clang format * code backup * remove unnecessary code * add optimization for the where op * clang format * fix cppcheck error * add a unit test for optimize resize * clang format * remove unnecessary header include * code backup * clang format * add unit tests for optimizing resize * clang format * add more unit test for optimizing where op * clang format * remove unnecessary code * add one more optimzation to remove contiguous * clang format * add a pointwise requirement * clang format * fix cppcheck error * add one more unit test * fixed a bug * clang format * remove unnecessary code * clang format * fix a build error * fix review comments * clang format * fix a review comments * clang format * code refinement * clang format * refine more code * refine more code * fix a bug related to reshape_cont optimization * clang format * fix a review comment * removed an unnecessary comment * refine code according to comments * clang format Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 01 Feb, 2021 1 commit
-
-
Paul Fultz II authored
* Update test for passes * Formatting * Rewrite simplify_reshapes * Formatting * Rewrite normalize pass * Formatting * Rewrite pooling * Formatting * Rewrite schedule tests * Formatting
-
- 06 Jan, 2021 1 commit
-
-
Shucai Xiao authored
* add an api get_main_module * clang format * modify onnx unit test for module * clang format * refactor ops unit test with the get_main_module * clang format * code backup * clang format * refine module c api * add python api for module * clang format * fix a python api issue * clang format * fix cppcheck error * clang format * refine unit tests changes * clang format * code backup * code backup * clang format * defer some changes to later PRs * change return of get_main_module from ref to pointer * clang format * add unit tests for the get_main_module_api * clang format * fix cppcheck error * clang format * fix cppcheck error * clang format * add more unit tests for more code change coverage * clang format * fixed a unit test error * clang format * fix unit test * clang format * code backup * code change for more code coverage * change program to module in various passes and matcher * clang format * modify the pass API * code backup * code backup * clang format * code backup * clang format * Add option to no generate a destroy method * Formatting * fix some review comments * clang format * fix review comments * clang format * clang format * code backup * code backup * clang format * fix cppcheck errors * clang format * clang format * fix build errors * clang format * modify gpu unit tests to using module * clang format * fix cppcheck error * clang format * Add flag to enable cpu backend * Make buffers shared * Enable optimizations * Formatting * fix review comments * code backup * clang format * code backup * clang format * fix a bug related to a unit test * clang format * clang format * fix a build error * remove unnecessary code * remove unnecessary files * code backup * clang format * remove the compile function from the module class * clang format * clang format * remove the context parameter from the from_value method of the module class * code refinement * clang format * merge changes from develop branch * clang format * fix cppcheck error * clang format * fix a build error * fixed a merge error * fix cppcheck error * fixed review comments * clang format * fix cppcheck error * fix a cppcheck error * fix cppcheck error * fix build error caused by merge * Add missing has_op function * Formatting * merge changes from develop branch * fix a cppcheck error * fixed some review comments * clang format * remove the begin/end function of the program class * clang format * refine code and fix cppcheck error * clang format * fix review comments * clang format * fix review comments * clang format * add unit tests for more code coverage * clang format * fix review comments * clang format * fix review comments * clang format * fix a build error in debug mode * clang format Co-authored-by:Paul <pfultz2@yahoo.com>
-
- 08 Dec, 2020 1 commit
-
-
Paul Fultz II authored
* Load op when serializing * Formatting * Add missing clip field * Use make_op almost everywhere * Formatting * More make ops for rnns * Get rid of spaces * Formatting * Remove operators headers * Formatting * Remove unused op headers * Increase line threshold
-
- 11 Nov, 2020 1 commit
-
-
Shucai Xiao authored
* code backup * clang format * change corresponding tool files * clang format Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 28 Oct, 2020 1 commit
-
-
Paul Fultz II authored
* Fix fusions in bert model * Formatting * Add unit tests * Formatting * Fix one_half matcher * Workaround ICE on gcc * Formatting * Tidy fixes Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 21 Sep, 2020 1 commit
-
-
Shucai Xiao authored
* fix a bug related to concat transpose. * clang format * use return instruction to replace the fake instruction Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 10 Jul, 2020 1 commit
-
-
Paul Fultz II authored
* Add initial optimization when using a mul over a sliced convolution * Formatting * Add more tests * Formatting * Convert to an assert * Check if used once * Formatting * Add test with horiz fusion * Formatting * Optimize nested slice * Formatting * Fix test * Add const refs * Remove unnecessary assert Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 15 Feb, 2020 1 commit
-
-
Shucai Xiao authored
* Add initial api * Formatting * Add more api * Formatting * Add auto api generation * Formatting * Fix some compilation errors * Change handle struct * Formatting * Fix reamining compilation errors * Formatting * Simplify using ctype * Formatting * Initial c++ generation * Formatting * Add C++header * Formatting * Add test * Formatting * Add initial tests * Formatting * Try to fix formatting * Cleanup formatting * Formatting * Fix constructors on the same line * Fix tests * Formatting * Fix tidy issues * Fix tidy issues * Fix naming issue * Add onnx API to parse buffer * Formatting * Add arguments api * Formatting * Fix verify parameters * Fix cppcheck issues * Formatting * Add method to get output shapes and bytes * Formatting * Try formatting * Formatting * Improve the test coverage * Formatting * Add print method * Formatting * Fix cppcheck issue * Fix package dependency * change migraphx api to support multiple program outputs * clang format * change api implementation * clang format * fix a build error * change api for correct automatic generation * clang format * Add nolint * Try fix formatting * Formatting * formatting * formatting * Fix formatting * code cleanup * clang format * fix cppcheck error * fix review comments * clang format Co-authored-by:
Paul Fultz II <pfultz2@yahoo.com> Co-authored-by:
kahmed10 <15948690+kahmed10@users.noreply.github.com>
-
- 04 Feb, 2020 1 commit
-
-
kahmed10 authored
* add multibroadcast to simplify reshapes * formatting * revert simplify_reshapes cpp
-
- 15 Nov, 2019 1 commit
-
-
Paul Fultz II authored
* Add compiler options * Add copy operators * Formatting * Use run_passes in tests * Formatting * Use run_pass in schedule test * Formatting * Add compile_options to get_passes in target * Formatting * Offload copy option * Formatting * Copy using pinned memory * Formatting * Improve performance of gpu copying * Formatting * Dont copy * Formatting * Always make an extra copy * Formatting * Remove unused write op * Add missing include * Remove copy_to_gpu function in python api * Make offload copy disabled by default on C++ * Formatting * Fix tidy issues * Formatting * Fix namespace * Fix python tests * Turn clang format off since its broken * Fix compile error on gcc 5 * Remove commented code
-
- 16 Oct, 2019 1 commit
-
-
Paul Fultz II authored
* Flatten nested concats * Formatting * Rename tests
-
- 26 Sep, 2019 1 commit
-
-
Paul Fultz II authored
* Fix compiler crash in TF inceptionv4 * Formatting * Remove else
-
- 02 Jul, 2019 1 commit
-
-
Paul authored
-
- 01 Jul, 2019 2 commits
- 24 May, 2019 2 commits
- 03 Apr, 2019 2 commits
-
-
Shucai Xiao authored
-
Shucai Xiao authored
-
- 05 Feb, 2019 2 commits
- 15 Jan, 2019 2 commits
- 14 Nov, 2018 1 commit
-
-
Paul authored
-
- 07 Nov, 2018 1 commit
-
-
Paul authored
-
- 26 Sep, 2018 1 commit
-
-
Scott Thornton authored
-