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
f5afc6ea
Unverified
Commit
f5afc6ea
authored
Feb 13, 2023
by
Krzysztof Sadowski
Committed by
GitHub
Feb 13, 2023
Browse files
fix rounding issue (#5159)
Co-authored-by:
Mufei Li
<
mufeili1996@gmail.com
>
parent
21733e90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/transforms/functional.py
python/dgl/transforms/functional.py
+1
-1
No files found.
python/dgl/transforms/functional.py
View file @
f5afc6ea
...
...
@@ -3508,7 +3508,7 @@ def radius_graph(x, r, p=2, self_loop=False,
distances
=
th
.
cdist
(
x
,
x
,
p
=
p
,
compute_mode
=
compute_mode
)
if
not
self_loop
:
distances
.
fill_diagonal_
(
r
+
1
e-4
)
distances
.
fill_diagonal_
(
r
+
1
)
edges
=
th
.
nonzero
(
distances
<=
r
,
as_tuple
=
True
)
...
...
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