-
Notifications
You must be signed in to change notification settings - Fork 22
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
TypeError: unsupported format string passed to GPUMemory.__format__ #5
Comments
Faker0715
changed the title
File "C:\Users\gq\Desktop\PyTorch_TextGCN-main\utils.py", line 237, in show_str string += f"{key}:\n{value:.4f}\n{max(value_lst):.4f}\n{min(value_lst):.4f} \n" TypeError: unsupported format string passed to GPUMemory.__format__
TypeError: unsupported format string passed to GPUMemory.__format__
Apr 4, 2022
我试了torch1.6和1.8都报这个错误 |
我也遇到了 |
同样遇到了,请问这个问题怎么解决呀 |
请问您的这个问题解决了吗?是torch版本的问题吗? |
我用的torch1.11也报这个错 |
我也遇到了,请问是怎么解决的 |
把这块注释掉就可以了,这一块应该打印出的是gpu的使用情况 if th.cuda.is_available():
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: