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

[Bug]Cannot allocate memory symbolic tensor shape [T.Any(), T.Any()] #16509

Open
wangweiwei1188 opened this issue Feb 2, 2024 · 4 comments
Open
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@wangweiwei1188
Copy link

Expected behavior

tvm.error.InternalError: Traceback (most recent call last):
File "/tvm/src/relay/backend/token_allocator.cc", line 41
InternalError: Check failed: (pval != nullptr) is false: Cannot allocate memory symbolic tensor shape [T.Any(), T.Any()]

Environment

bert module with the newest tvm version.

@wangweiwei1188 wangweiwei1188 added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Feb 2, 2024
@MrJungle1
Copy link

@wangweiwei1188 Hello, I also encountered the same problem, have you solved it?

@yongwww
Copy link
Member

yongwww commented Mar 11, 2024

I recommend trying it with Relax, which offers the first-class symbolic shape support.

@MrJungle1
Copy link

@yongwww But my previous job used relay, is there any way to make minimal changes?

@yongwww
Copy link
Member

yongwww commented Mar 11, 2024

@yongwww But my previous job used relay, is there any way to make minimal changes?

Perhaps you can try to use a static shape instead of Any in your case for a quick workaround if migration to Relax requires much effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

3 participants