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

你好,请问以下下面的错误怎么解决? #17

Open
AYAY998 opened this issue May 13, 2023 · 1 comment
Open

你好,请问以下下面的错误怎么解决? #17

AYAY998 opened this issue May 13, 2023 · 1 comment

Comments

@AYAY998
Copy link

AYAY998 commented May 13, 2023

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上一样的,为什么会报这种错误?

@AaronKevinAA
Copy link

我也是这个问题,你解决了嘛?

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

2 participants