-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove contiguous from passes for reshapes #2319
Conversation
TedThemistokleous
commented
Oct 11, 2023
•
edited
Loading
edited
- Remove contiguous from simplify algebra passes for reshape op
- Remove contiguous from fuse_pointwise for reshape op
- related to Modify reshapes #2099 & Remove contiguous from reshape parsing #2190 involving reshape_lazy
Codecov Report
@@ Coverage Diff @@
## develop #2319 +/- ##
==========================================
Coverage ? 91.45%
==========================================
Files ? 433
Lines ? 16161
Branches ? 0
==========================================
Hits ? 14779
Misses ? 1382
Partials ? 0
|
Need more changes inside In general look for |
This build is not recommended to merge 🔴 |
❌agentmodel: ERROR - check error outputTraceback (most recent call last):File "/src/AMDMIGraphX/tools/accuracy/accuracy_checker.py", line 336, in main() File "/src/AMDMIGraphX/tools/accuracy/accuracy_checker.py", line 254, in main pred_migx = np.array(model.run(params)[-1]) RuntimeError: /src/AMDMIGraphX/src/targets/gpu/device/include/migraphx/gpu/device/visit.hpp:140: hip_visit_views_impl: Ranks must be the same 🔴bert_base_cased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output🔴bert_large_uncased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output🔴distilgpt2_fp16: FAILED: MIGraphX is not within tolerance - check verbose output |
@kahmed10 not sure if this undoes your branch with adding contiguous. What was that PR again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the status on this PR? Waiting on Khalique to respond or additional changes?
Not sure, I haven't seen much movement on it. I dont intend to add anything else to this |
remove the contiguous added when transpose input is used.
remove contiguous that we expect since we don't insert contiguous anymore as part of the simplification in our simplify algebra pass
Remove the extra contiguous put into reshapes
Need to adjust the output of this for comparision. Since we're missing the contiguous we can't rely on find_split_reshape due to the lack of contiguous to gate off of
…implify_reshapes. Update tests to reflect change accordingly
dbc784e
to
af3e36c
Compare
Rebased off develop and added changes based on @umangyadav pertaining to reshape since this is for reshape_lazy changes done previously @CharlieL7 if you want to take a look/have comments this should be fine to review now One question I do have for @umangyadav pruning other reshapes I suppose we'll try to prune based on this list and then handle each matcher case by case? I'll create another PR for these to segment the work up if need be.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, CI fixes needed
@@ -1897,12 +1897,17 @@ TEST_CASE(simplify_split_add_relu_reshape) | |||
auto concatb = m2.add_instruction(b, concat); | |||
auto sum = m2.add_instruction(migraphx::make_op("add"), input, concatb); | |||
auto relu = m2.add_instruction(migraphx::make_op("relu"), sum); | |||
auto rsp = m2.add_instruction(migraphx::make_op("reshape", {{"dims", {3, 8}}}), relu); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering what change caused this reshape to split into two.
@TedThemistokleous Format has a problem after that I can merge |