Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
279ebb15
Unverified
Commit
279ebb15
authored
Apr 11, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Apr 11, 2024
Browse files
[GraphBolt][CUDA] Link prediction `--mode=cuda-cuda` fix. (#7294)
parent
f0f424f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/sampling/graphbolt/link_prediction.py
examples/sampling/graphbolt/link_prediction.py
+1
-1
No files found.
examples/sampling/graphbolt/link_prediction.py
View file @
279ebb15
...
...
@@ -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`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment