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

转换时的警告 #11

Closed
JiaPai12138 opened this issue Dec 8, 2021 · 2 comments
Closed

转换时的警告 #11

JiaPai12138 opened this issue Dec 8, 2021 · 2 comments

Comments

@JiaPai12138
Copy link

TracerWarning: Converting a tensor to a Python integer might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!

相关代码:route = F.interpolate(xRt2, size=(int(xRt2.shape[2] * 2), int(xRt2.shape[3] * 2)), mode='nearest')

大佬 请问这个警告影响推理吗?

@hpc203
Copy link
Owner

hpc203 commented Dec 9, 2021 via email

@JiaPai12138
Copy link
Author

谢谢解答

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

No branches or pull requests

2 participants