"git@developer.sourcefind.cn:OpenDAS/bitsandbytes.git" did not exist on "e7c6fc61ed587ab3d469dfee21fa1dc435c4f057"
Unverified Commit 279ebb15 authored by Muhammed Fatih BALIN's avatar Muhammed Fatih BALIN Committed by GitHub
Browse files

[GraphBolt][CUDA] Link prediction `--mode=cuda-cuda` fix. (#7294)

parent f0f424f7
...@@ -251,7 +251,7 @@ def compute_mrr(args, model, node_emb, seeds, labels, indexes): ...@@ -251,7 +251,7 @@ def compute_mrr(args, model, node_emb, seeds, labels, indexes):
into batches to handle potentially large graphs. into batches to handle potentially large graphs.
""" """
preds = torch.empty(seeds.shape[0]) preds = torch.empty(seeds.shape[0], device=indexes.device)
mrr = RetrievalMRR() mrr = RetrievalMRR()
seeds_src, seeds_dst = seeds.T seeds_src, seeds_dst = seeds.T
# The constant number is 1001, due to negtive ratio in the `ogbl-citation2` # The constant number is 1001, due to negtive ratio in the `ogbl-citation2`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment