-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TOPI] Add support for arbitrary dtypes to CSRMV and CSRMM #8437
Conversation
@@ -212,14 +210,15 @@ def check_device(device): | |||
|
|||
|
|||
def test_csrmv(): | |||
verify_dynamic_csrmv(batch=5, in_dim=7, out_dim=1, use_bias=False) | |||
verify_dynamic_csrmv(batch=5, in_dim=7, out_dim=1, use_bias=True) | |||
verify_dynamic_csrmv(batch=5, in_dim=7, out_dim=1, dtype="float32", use_bias=False) |
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.
As both are 2 diff op, I would suggest to maintain uniformity in Data type input for both the cases.
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.
This tests both dtype and use_bias at the same time. I'm trying to avoid adding too much testing overhead. If necessary, I can split it.
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 meant to add same datatype test cases for both. Please choose to ignore, it is minor. 👍
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.
Over all LGTM!
One minor comment.
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
Fixes #8406
@mbrookhart @masahi