"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "7101c7316b6f6d3f4e578f29c108533cb678a304"
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):
into batches to handle potentially large graphs.
"""
preds = torch.empty(seeds.shape[0])
preds = torch.empty(seeds.shape[0], device=indexes.device)
mrr = RetrievalMRR()
seeds_src, seeds_dst = seeds.T
# 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