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

[TOPI] Expose the interface of topi.collapse_sum #102

Merged

Conversation

SiriusNEO
Copy link
Contributor

TOPI has an implementation of collapse_sum internally (tvm/topi/reduction.h) but it is not exposed to FFI and can not be called in Python side. This patch exposes it and adds some related tests.
Besides, now legalizer can legalize collapse_sum_like/to! But due to the TOPI implementation, it can't handle the symbolic case.

@MasterJH5574 MasterJH5574 merged commit 8d06acc into mlc-ai:relax Jan 17, 2023
MasterJH5574 pushed a commit that referenced this pull request Jan 28, 2023
TOPI has an implementation of `collapse_sum` internally
(`tvm/topi/reduction.h`) but it is not exposed to FFI and can not be
called in Python side. This patch exposes it and adds some related
tests.
Besides, now legalizer can legalize `collapse_sum_like/to`! But due to
the TOPI implementation, it can't handle the symbolic case.
MasterJH5574 pushed a commit that referenced this pull request Jan 31, 2023
TOPI has an implementation of `collapse_sum` internally
(`tvm/topi/reduction.h`) but it is not exposed to FFI and can not be
called in Python side. This patch exposes it and adds some related
tests.
Besides, now legalizer can legalize `collapse_sum_like/to`! But due to
the TOPI implementation, it can't handle the symbolic case.
MasterJH5574 pushed a commit that referenced this pull request Feb 8, 2023
TOPI has an implementation of `collapse_sum` internally
(`tvm/topi/reduction.h`) but it is not exposed to FFI and can not be
called in Python side. This patch exposes it and adds some related
tests.
Besides, now legalizer can legalize `collapse_sum_like/to`! But due to
the TOPI implementation, it can't handle the symbolic case.
MasterJH5574 pushed a commit that referenced this pull request Feb 12, 2023
TOPI has an implementation of `collapse_sum` internally
(`tvm/topi/reduction.h`) but it is not exposed to FFI and can not be
called in Python side. This patch exposes it and adds some related
tests.
Besides, now legalizer can legalize `collapse_sum_like/to`! But due to
the TOPI implementation, it can't handle the symbolic case.
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.

2 participants