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

Error in training #26

Open
Luguo-ry opened this issue May 25, 2021 · 3 comments
Open

Error in training #26

Luguo-ry opened this issue May 25, 2021 · 3 comments

Comments

@Luguo-ry
Copy link

Luguo-ry commented May 25, 2021

Hi! I'm trying to train the neural network, using the default values provided in the script run_GAIN_BERT.sh, but the training script is giving me an error after beginning. It seems to be an error with DGL The error is the following:
捕获

@Emir-Liu
Copy link

when using the new version packet,I meet the problem too.And,I change the code in GAIN.py.

# graph_big = dgl.batch_hetero(graphs)
graph_big = dgl.batch_hetero(graphs).to('cuda:0')
...
# entity_graph_big = dgl.batch(entity_graphs)
entity_graph_big = dgl.batch(entity_graphs).to('cuda:0')

@LawsonAbs
Copy link

升级dgl库,然后改写对应代码,将模型放到GPU上就ok了

@duLun008
Copy link

when using the new version packet,I meet the problem too.And,I change the code in GAIN.py.

# graph_big = dgl.batch_hetero(graphs)
graph_big = dgl.batch_hetero(graphs).to('cuda:0')
...
# entity_graph_big = dgl.batch(entity_graphs)
entity_graph_big = dgl.batch(entity_graphs).to('cuda:0')

useful, and dgl-cu102 (0.4.3) not suitable. I use 0.6.1 then it works

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

4 participants