Skip to content
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

[TIR] Add support for 0-dim buffer #9224

Merged
merged 9 commits into from
Oct 14, 2021
Merged

[TIR] Add support for 0-dim buffer #9224

merged 9 commits into from
Oct 14, 2021

Conversation

shingjan
Copy link

@shingjan shingjan commented Oct 7, 2021

This PR intends to add support and test cases for 0-dimensional buffer in TVM.

cc: @junrushao1994 @vinx13 @zxybazh

@shingjan shingjan changed the title [TIR] Add support for 0-dim buffer [WIP][TIR] Add support for 0-dim buffer Oct 7, 2021
@vinx13
Copy link
Member

vinx13 commented Oct 12, 2021

given we have 0-rank support in TIR, we can remove these lines to directly lower to 0-rank TIR https://github.com/apache/tvm/blob/main/src/te/operation/create_primfunc.cc#L105-L109. Please check if we can pass this test case https://github.com/apache/tvm/blob/main/tests/python/unittest/test_te_create_primfunc.py#L286-L300

Copy link
Member

@zxybazh zxybazh left a comment

Choose a reason for hiding this comment

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

Thanks for spotting the bug, LGTM if you could fix the tests.

@vinx13
Copy link
Member

vinx13 commented Oct 12, 2021

Overall LGTM, please address comments and get it merged soon

@shingjan
Copy link
Author

@vinx13 With https://github.com/apache/tvm/blob/main/src/te/operation/create_primfunc.cc#L105-L109 removed, all tests under test_te_* passed. Should be good to merge after the checks.

@shingjan shingjan changed the title [WIP][TIR] Add support for 0-dim buffer [TIR] Add support for 0-dim buffer Oct 13, 2021
@vinx13 vinx13 merged commit 08018ea into apache:main Oct 14, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 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.

3 participants