chengsen / PyTorch_TextGCN

The PyTorch 1.6 and Python 3.7 implementation for the paper Graph Convolutional Networks for Text Classification
https://arxiv.org/abs/1809.05679
106 stars 20 forks source link

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

Open Faker0715 opened 2 years ago

Faker0715 commented 2 years ago

image

Faker0715 commented 2 years ago

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

Gq1999 commented 2 years ago

我也遇到了

xiangliang-zhang commented 2 years ago

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

Liumengqiu01 commented 2 years ago

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

Liumengqiu01 commented 2 years ago

我用的torch1.11也报这个错

12number commented 2 years ago

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

fang-dui commented 1 year ago

把这块注释掉就可以了,这一块应该打印出的是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)