You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "E:\知识图谱\RE-GCN-master\src\main.py", line 442, in
run_experiment(args)
File "E:\知识图谱\RE-GCN-master\src\main.py", line 234, in run_experiment
loss_e, loss_r, loss_static = model.get_loss(history_glist, output[0], static_graph, use_cuda)
File "E:\知识图谱\RE-GCN-master\src\rrgcn.py", line 212, in get_loss
evolve_embs, static_emb, r_emb, _, _ = self.forward(glist, static_graph, use_cuda)
File "E:\知识图谱\RE-GCN-master\src\rrgcn.py", line 160, in forward
temp_e = self.h[g.r_to_e]
IndexError: tensors used as indices must be long, byte or bool tensors,代码没动过,除了改了一下UTF-8的编码格式,剩下的都是Github上一样的,为什么会报这种错误?
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "E:\知识图谱\RE-GCN-master\src\main.py", line 442, in
run_experiment(args)
File "E:\知识图谱\RE-GCN-master\src\main.py", line 234, in run_experiment
loss_e, loss_r, loss_static = model.get_loss(history_glist, output[0], static_graph, use_cuda)
File "E:\知识图谱\RE-GCN-master\src\rrgcn.py", line 212, in get_loss
evolve_embs, static_emb, r_emb, _, _ = self.forward(glist, static_graph, use_cuda)
File "E:\知识图谱\RE-GCN-master\src\rrgcn.py", line 160, in forward
temp_e = self.h[g.r_to_e]
IndexError: tensors used as indices must be long, byte or bool tensors,代码没动过,除了改了一下UTF-8的编码格式,剩下的都是Github上一样的,为什么会报这种错误?
The text was updated successfully, but these errors were encountered: