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-cluster
Commits
0003e008
Commit
0003e008
authored
Jan 25, 2019
by
rusty1s
Browse files
walk length increased
parent
1dcb3933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_rw.py
test/test_rw.py
+1
-1
No files found.
test/test_rw.py
View file @
0003e008
...
...
@@ -11,7 +11,7 @@ def test_rw():
start
=
tensor
([
0
,
1
,
2
,
3
,
4
],
torch
.
long
,
device
)
row
=
tensor
([
0
,
1
,
1
,
1
,
2
,
2
,
3
,
3
,
4
,
4
],
torch
.
long
,
device
)
col
=
tensor
([
1
,
0
,
2
,
3
,
1
,
4
,
1
,
4
,
2
,
3
],
torch
.
long
,
device
)
walk_length
=
2
walk_length
=
10
out
=
random_walk
(
row
,
col
,
start
,
walk_length
)
assert
out
[:,
0
].
tolist
()
==
start
.
tolist
()
...
...
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