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

TypeError: unsupported format string passed to GPUMemory.__format__ #5

Open
Faker0715 opened this issue Apr 4, 2022 · 8 comments
Open

Comments

@Faker0715
Copy link

No description provided.

@Faker0715 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
@Faker0715
Copy link
Author

image

@Faker0715
Copy link
Author

我试了torch1.6和1.8都报这个错误

@Gq1999
Copy link

Gq1999 commented Apr 4, 2022

我也遇到了

@xiangliang-zhang
Copy link

同样遇到了,请问这个问题怎么解决呀

@Liumengqiu01
Copy link

请问您的这个问题解决了吗?是torch版本的问题吗?

@Liumengqiu01
Copy link

我用的torch1.11也报这个错

@12number
Copy link

我也遇到了,请问是怎么解决的

@fang-dui
Copy link

fang-dui commented Nov 8, 2022

把这块注释掉就可以了,这一块应该打印出的是gpu的使用情况
train.py 的242 243 244行

if th.cuda.is_available():

    #     gpu_mem = cudause.gpu_mem_get(_id=0)
    #     record.log_single(key="gpu_mem", value=gpu_mem)

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

6 participants