Skip to content

[TOPI] Add support for arbitrary dtypes to CSRMV and CSRMM#8437

Merged
areusch merged 1 commit intoapache:mainfrom
tkonolige:csrmvmm_arbitrary_Dtype
Jul 13, 2021
Merged

[TOPI] Add support for arbitrary dtypes to CSRMV and CSRMM#8437
areusch merged 1 commit intoapache:mainfrom
tkonolige:csrmvmm_arbitrary_Dtype

Conversation

@tkonolige
Copy link
Copy Markdown
Contributor

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)
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor

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. 👍

Copy link
Copy Markdown
Contributor

@ANSHUMAN87 ANSHUMAN87 left a 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.

Copy link
Copy Markdown
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@areusch areusch merged commit f62917e into apache:main Jul 13, 2021
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] topi.sparse.csrmv only accepts float32, but not other data types

4 participants