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

[Relax] Enhance symbolic expr estimation in memory planning #16872

Merged

Conversation

MasterJH5574
Copy link
Contributor

This PR enhances the symbolic expression upper bound estimation in static memory planning.

Prior to this PR, we are not able to estimate the upper bound of a * b when a has an upper bound while b does not. This PR enhances the estimation with arith::IntSet.

We introduce another TIR attribute tir_non_negative_var to indicate the non-negative TIR variables for memory planning use.

A new unit test is introduced for this enhancement.

This PR enhances the symbolic expression upper bound estimation in
static memory planning.

Prior to this PR, we are not able to estimate the upper bound of
`a * b` when `a` has an upper bound while `b` does not. This PR
enhances the estimation with arith::IntSet.

We introduce another TIR attribute `tir_non_negative_var` to indicate
the non-negative TIR variables for memory planning use.

A new unit test is introduced for this enhancement.
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2024-04-11-mem-plan-symbolic branch from 7847d74 to 958ca0c Compare April 11, 2024 21:18
@tqchen tqchen merged commit 0a3fe22 into apache:main Apr 12, 2024
19 checks passed
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