- 18 Oct, 2022 1 commit
-
-
Ted Themistokleous authored
-
- 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
-
- 21 Sep, 2022 3 commits
-
-
Ted Themistokleous authored
-
Ted Themistokleous authored
Make this easier to read.
-
Charlie Lin authored
Change find_mul_conv to work with multibroadcast also. Checks the strides instead of the broadcast axis.
-
- 14 Sep, 2022 1 commit
-
-
Umang Yadav authored
* fix slice_dim1 for case
-
- 29 Aug, 2022 1 commit
-
-
Umang Yadav authored
reshape op requires standard shape. During simplify_algebra, it inserts reshapes without checking for this requirement.
-
- 27 Aug, 2022 1 commit
-
-
Paul Fultz II authored
This will rewrite dot operators like X(Y + b) to XY + Xb when b is constant as we can fold the add away. This improves handling pointwise with broadcasted operators, this helps improves const propagation. Improve gemm fusion with a mul_add Improve support for broadcast shapes in gemm
-
- 22 Jul, 2022 1 commit
-
-
Ted Themistokleous authored
-
- 21 Jul, 2022 1 commit
-
-
Ted Themistokleous authored
-
- 19 Jul, 2022 1 commit
-
-
Ted Themistokleous authored
Doing this allows for things to be university across all our targets without neededing an op for each ref. TODO. breaks right now. Reusing tests from previous iteration with some tweaks. Need to get back to this once I get better train of thought
-
- 18 Jul, 2022 1 commit
-
-
Ted Themistokleous authored
Conversion works, just issues with predicate right now.
-
- 11 Jul, 2022 2 commits
-
-
Ted Themistokleous authored
I may need additional checks for this, or to somehow find the matching division by zero, and cause a dangling reference so this gets flagged correctly at compile time. Current attempt inserts a divzero instruction that would later get picked up at the verify stage during compile. Not sure if this is correct incase we run into operator collisions down the road
-
Ted Themistokleous authored
This reverts commit fcc84214.
-
- 08 Jul, 2022 2 commits
-
-
Ted Themistokleous authored
-
Ted Themistokleous authored
-
- 05 Jul, 2022 1 commit
-
-
Ted Themistokleous authored
Making things more maintainable by splitting the unit tests that shared the baseline program for validation which resulted in an & case that was a bit more cumbersome to debug.
-
- 30 Jun, 2022 11 commits
-
-
Ted Themistokleous authored
-
Ted Themistokleous authored
-
Ted Themistokleous authored
Throw an exception when this occurs to indicate our simpliciation passes resulted in a singularity somewhere. Related to #1236
-
Ted Themistokleous authored
Simplify addition zero multiplication and divide operations. Added approrpiate test cases with returns and replacing the instruction and operand to just return zero.
-
Ted Themistokleous authored
Using the unit/neg unit matchers to handle subtraction operations in the same steps. Added unit tests for both cases.
-
Ted Themistokleous authored
Part of changes that go wtih #1236. Reverts -1 divide operations to a simple negation of the parameter
-
Ted Themistokleous authored
Added test case and code to simplify zero additions between paremeters and literals during simplifications. In reference to issue #1236
-
Ted Themistokleous authored
Done to satisfy simplifications specified by #1236 . Just replace every parameter divided by 1 with itself. It's assumed that the eliminate_identity() pass will handle generated identity operators in our run_pass()
-
Ted Themistokleous authored
Save a multiply operation with that of a negation of input parameter x. Suggested improvement via #1236
-
Ted Themistokleous authored
Original use case of having a literal 1, instead of any other number in simplify_mul_add, resulted in the find_unit_mult_const function to optimize away the literal 1 causing this test to fail. on the final check. Switched the constant to a non zero & one value, and now correctly passes.
-
Ted Themistokleous authored
Commit for the day, work in progress as I'm failing one of our unit tests outside of the change
-
- 22 Jun, 2022 1 commit
-
-
Ted Themistokleous authored
Updated each source file in the repo with the existing license.
-
- 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
-
- 24 May, 2021 1 commit
-
-
Shucai Xiao authored
* backup implementation of resize enhancement * clang format * code backup for the resize * clang format * fix build error for resize operator * clang format * tmp code backup * clang format * remove changes in parse_resize * remove unnecessary changes * clang format * add unit test for the bug * clang format * remove print code * remove a semi-colon * clang format * fix a tidy error * fix review comments * clang format Co-authored-by:
Paul Fultz II <pfultz2@yahoo.com> Co-authored-by:
mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 18 Mar, 2021 1 commit
-
-
kahmed10 authored
* fix relu6 * add more transposes * add parse_tf calls * progress on multi_outputs * formatting * add multi output test * add comment and update migraphx.py * fix compile * formatting * update tools/api * formatting * fix function call * fix generate * simplify tests * formatting * rename tests * enclose braces * add more tests * update comments * rename file and add default param * formatting * fix tidy and change type * formatting older files Co-authored-by:Paul Fultz II <pfultz2@yahoo.com>
-
- 03 Mar, 2021 1 commit
-
-
Shucai Xiao authored
* fix issue#727 * clang format * refine unit tests * fix cppcheck error * fix review comments * refine a unit test to cover more code changes * fix cppcheck error * remove unnecessary include file * fix review comments * clang format Co-authored-by:
Paul Fultz II <pfultz2@yahoo.com> 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>
-
- 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>
-
- 08 Jul, 2020 1 commit
-
-
Shucai Xiao authored
* code backup * clang format * refine the algorithm to support more scenarios * clang format * fix review comments * clang format * add one more unit tests to have more code change coverage Co-authored-by:mvermeulen <5479696+mvermeulen@users.noreply.github.com>
-
- 03 Jun, 2020 1 commit
-
-
Shucai Xiao authored
* fix pad calc * Add decompose pass * Add decompose test * Formatting * bert tf passes correctness * formatting * Add remap * Formatting * add test * formatting * remove comment * Add compute method for dot * Formatting * add inline * Add finder for horizontal fusion * Formatting * Formatting * Reuse predicate * formatting * fix order for literal * formatting * add test for gelu * formatting * added add_gelu fusion * Add gemm fusions * Formatting * add files * formatting * test no mul_add * formatting * progress on div * formatting * continue work on pass * remove layernorm opt * revert reduce file * Add some fixes for convolution * Formatting * Fix shape tests * Formatting * Reuse axis equal * Add initial split fusion * Formatting * Update offset * Workaround outputs that cant accept nonstandard shapes * Formatting * Add check for split concat * Formatting * Add missing headers * Formatting * Add tests * Formatting * add optimization for bert * code backup for bert optimization * continue testing * formatting * fix matcher * formatting * add gelu_fn and tests * formatting * fix matcher, remove extra tests * formatting * fix matcher * add missing files * add find_layernorm * add add_transpose to cmake file * code backup for the contigous fusion * refine ops fusion * clang format * fixed bug in previous optimization * clang format * add more optimization * remove unnecessary code * refinement of the fustion code * clang format * fixed a bug * add used_once * formatting * start on new gelu * formatting * add matchers in fuse_ops * formatting * add dce to fix add_gelu * add simplify_rsqrt and test * formatting * debugging value for matcher * formatting * add more to matchers * formatting * fix errors * remove onnx gen * add any_arg, change matchers to use either_arg * formatting * clang format * formatting * add used_once * formatting * code cleanup * clang format * fixed a bug * remove unnecessary code * refine comments * optimize bert to remove more contiguous * clang format * remove unnecessary code * add unit tests for bert optimization * clang format * fix review comments * clang format * refine a fusion of reshape and slice * clang format * fix cppcheck error * fix review comments * add the fusion of slice and transpose * clang format * add another optimization to fuse slice and transpose * clang format * fix review comments * clang format * fix review comments * clang format * fix review comments Co-authored-by:
Khalique <15948690+kahmed10@users.noreply.github.com> Co-authored-by:
Paul <pfultz2@yahoo.com> Co-authored-by:
mvermeulen <5479696+mvermeulen@users.noreply.github.com> Co-authored-by:
Shucai Xiao <scxiao@prj47-rack-99.local.lan>
-