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

静态shape转换后的模型模型,是否可以计算动态shape的输入 #2738

Closed
MuYu-zhi opened this issue Jan 19, 2024 · 2 comments
Closed
Labels

Comments

@MuYu-zhi
Copy link

MuYu-zhi commented Jan 19, 2024

如标题,如果模型转换时是设定的静态shape输入,转换后推理调用的时候,输入是非设定的静态shape,是否可以通过reszie input tensor和resize session实现动态shape的输入推理计算?

此外,每个tensor的shape计算是在哪个阶段被调用执行的?

@v0jiuqi
Copy link
Collaborator

v0jiuqi commented Jan 31, 2024

不行,模型转换的时候就用动态shape来转

Copy link

Marking as stale. No activity in 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants