GAIN icon indicating copy to clipboard operation
GAIN copied to clipboard

Error in training

Open Luguo-ry opened this issue 4 years ago • 3 comments

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: 捕获

Luguo-ry avatar May 25 '21 01:05 Luguo-ry

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')

Emir-Liu avatar May 27 '21 10:05 Emir-Liu

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

LawsonAbs avatar Nov 11 '21 06:11 LawsonAbs

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

duLun008 avatar May 25 '22 09:05 duLun008