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
torch-sparse
Commits
c74b62c9
Commit
c74b62c9
authored
Mar 18, 2020
by
rusty1s
Browse files
typo
parent
07a6928b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/saint.py
torch_sparse/saint.py
+1
-1
No files found.
torch_sparse/saint.py
View file @
c74b62c9
...
@@ -49,7 +49,7 @@ def sample_rw(src: SparseTensor, num_root_nodes: int,
...
@@ -49,7 +49,7 @@ def sample_rw(src: SparseTensor, num_root_nodes: int,
rowptr
,
col
,
_
=
src
.
csr
()
rowptr
,
col
,
_
=
src
.
csr
()
start
=
np
.
random
.
choice
(
src
.
size
(
0
),
size
=
num_root_nodes
,
replace
=
False
)
start
=
np
.
random
.
choice
(
src
.
size
(
0
),
size
=
num_root_nodes
,
replace
=
False
)
start
=
torch
.
from_numpy
(
start
).
to
(
src
.
device
())
start
=
torch
.
from_numpy
(
start
).
to
(
src
.
device
()
,
torch
.
long
)
out
=
torch
.
ops
.
torch_sparse
.
random_walk
(
rowptr
,
col
,
start
,
walk_length
)
out
=
torch
.
ops
.
torch_sparse
.
random_walk
(
rowptr
,
col
,
start
,
walk_length
)
...
...
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