-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support signed and unsigned integer types in migraphx dialect #1692
base: develop
Are you sure you want to change the base?
Support signed and unsigned integer types in migraphx dialect #1692
Conversation
TrivialConverter<RsqrtOp, tosa::RsqrtOp>, | ||
TrivialConverter<SigmoidOp, tosa::SigmoidOp>, | ||
TrivialConverter<TanhOp, tosa::TanhOp>, QuantizeLinearConverter, | ||
DeQuantizeLinearConverter, ConvertConverter, NegConverter, |
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.
DeQuantizeLinearConverter was duplicated
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.
Looks good to me and pretty much what I was thinking. I'm glad I was wildly pessimistic about implementation time here
@@ -117,18 +117,14 @@ def MIGraphX_WhereOp : | |||
|
|||
def MIGraphX_ConvertOp : | |||
MIGraphX_Op<"convert">, | |||
Arguments<(ins AnyMIXRShaped:$inA, UnitAttr:$zeroExtend)>, | |||
Arguments<(ins AnyMIXRShaped:$inA)>, |
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'd keep zeroExtend
for the sake of backwards compatibilyt and remove it in a followup PR
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1692 +/- ##
===========================================
- Coverage 77.76% 77.66% -0.10%
===========================================
Files 100 100
Lines 27866 27953 +87
Branches 4063 4080 +17
===========================================
+ Hits 21671 21711 +40
- Misses 4540 4575 +35
- Partials 1655 1667 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
In this PR we change MIGraphX dialect to support singed and unsigned int types.
TODO: add more test (quantize) and e2e tests