ruidan/IMN-E2E-ABSA

why can't use the gpu to train?

JBoRu opened this issue · 4 comments

JBoRu commented

Hello, when i use the command--
"CUDA_VISIBLE_DEVICES=0 python train.py --domain res_15"
to run the process. First,it occurs the warning--
"UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory. "Converting sparse IndexedSlices to a dense Tensor of unknown shape. " "
and then, i find it's training very slowly. And then , i find i not use the GPU, so, can you give me a solution? Thank you very much!
Device:
ubuntu16
TF2.0
python3.7

您好,请问您用cpu跑通了吗,我有几个问题想请教您。
Hello, can you run through with cpu? I have a few questions to ask you.

JBoRu commented

您好,请问您用cpu跑通了吗,我有几个问题想请教您。
Hello, can you run through with cpu? I have a few questions to ask you.

您好,我已经用GPU跑通了,没有尝试CPU

lzf00 commented

请问您用的python2还是python3的代码 我把Python2改成2python3,跑出来训练集loss=0,但是验证集却正常 2020-07-31 17:36:33,927 INFO [Train] loss: 0.0000, [Sentiment] loss: 0.0000, [Domain] loss: 0.0000, [Sentiment] acc: 0.0000, [Domain] acc: 0.0000, 2020-07-31 17:38:20,377 INFO [Validation] loss: 0.5878, [Sentiment] loss: 0.5649, [Domain] loss: 0.0229, [Sentiment] acc: 0.7527, [Domain] acc: 0.9927, 不知道怎么回事? 请问您有没有遇到这个问题? 在 2020-07-28 13:25:33,"JBoRu" notifications@github.com 写道: 您好,请问您用cpu跑通了吗,我有几个问题想请教您。 Hello, can you run through with cpu? I have a few questions to ask you. 您好,我已经用GPU跑通了,没有尝试CPU — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

请问您用python3怎么跑通的,我用python3.7一直遇到各种版本不兼容的问题,能请问一下分别是用的什么版本吗,这是我的邮箱1437066318@qq.com,谢谢!