-
Notifications
You must be signed in to change notification settings - Fork 89
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
Find dot slice #3268
Find dot slice #3268
Conversation
This build is not recommended to merge 🔴 |
🔴bert_large_uncased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3268 +/- ##
===========================================
+ Coverage 92.21% 92.23% +0.01%
===========================================
Files 493 493
Lines 19725 19770 +45
===========================================
+ Hits 18190 18234 +44
- Misses 1535 1536 +1 ☔ View full report in Codecov by Sentry. |
src/simplify_algebra.cpp
Outdated
auto has_neg_vals = [](auto vec) { | ||
return std::any_of(vec.begin(), vec.end(), [](auto i) { return i < 0; }); | ||
}; | ||
if(has_neg_vals(starts) or has_neg_vals(ends) or has_neg_vals(axes)) | ||
{ | ||
return; | ||
} |
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.
Maybe this should be a throw or a warning because having a negative value here would probably be a problem.
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.
We have normlize_ops
pass which runs at the beginning which would convert all the neg axes to positive ones.
Therefore this case should never arise and retuning simply is okay.
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.
I think it should print a warning if possible, otherwise if we mess something up wrt. normalize_ops
this could be passed over without us knowing.
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.
made changes to use "normalized_operator" and also enabled test for neg vals.
Fixes #3267
Didn't add verify tests since they are already covered through GRU/RNN tests.