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

why can't use the gpu to train? #5

Open
JBoRu opened this issue Nov 30, 2019 · 4 comments
Open

why can't use the gpu to train? #5

JBoRu opened this issue Nov 30, 2019 · 4 comments

Comments

@JBoRu
Copy link

JBoRu commented Nov 30, 2019

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

@dongyang12138
Copy link

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

@JBoRu
Copy link
Author

JBoRu commented Jul 28, 2020

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

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

@dongyang12138
Copy link

dongyang12138 commented Jul 31, 2020 via email

@lzf00
Copy link

lzf00 commented Jul 27, 2022

请问您用的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,谢谢!

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

3 participants