hyren / query2box

Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
http://snap.stanford.edu/query2box
MIT License
203 stars 28 forks source link

Some questions about Traceback #8

Open WenrouM opened 3 years ago

WenrouM commented 3 years ago

Hello Professor, the program runs to the half to report the error as shown in the figure C59A1335-3C80-4863-80FD-D8DBC8536FA8

Xiaoxiang7 commented 2 years ago

Has this problem been solved? I encountered the same error.

hyren commented 2 years ago

Hi, can you cast index to long type? index=tail_part.view(-1).long()

Xiaoxiang7 commented 2 years ago

嗨,你可以将索引转换为长类型吗?index=tail_part.view(-1).long()

Thank you for your help!