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

模型固化出现问题 #17

Closed
kycwx opened this issue May 18, 2022 · 1 comment
Closed

模型固化出现问题 #17

kycwx opened this issue May 18, 2022 · 1 comment
Labels
question Further information is requested Stale

Comments

@kycwx
Copy link

kycwx commented May 18, 2022

❔Question

感谢您的工作,效果非常好!!!
但我在固化您的模型以便在c++中进行调用的时候,遇到了一些问题
在使用 torch.jit.trace() 时候发生了问题
ts = torch.jit.trace(model, out)
ts.save("pspv5s.torchscript.pt")
提示我:List inputs to traced functions must have consistent element type. Found Tuple[Tensor, List[Tensor]] and Tensor

image

能否请求您的帮助?

Additional context

@kycwx kycwx added the question Further information is requested label May 18, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

1 participant