awslabs / dgl-ke

High performance, easy-to-use, and scalable package for learning large-scale knowledge graph embeddings.
https://dglke.dgl.ai/doc/
Apache License 2.0
1.28k stars 196 forks source link

[Bug] In PyTorch 1.6, Integer division using div is no longer supported #151

Closed classicsong closed 4 years ago

classicsong commented 4 years ago

In PyTorch 1.6, Integer division using div is no longer supported, and in a future release div will perform true division as in Python 3. Use torch.true_divide() or torch.floor_divide() (// in Python), instead.

Mentioned in https://discuss.dgl.ai/t/knowledge-graphs-dglke/1332.