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
f577fcee
Commit
f577fcee
authored
Nov 12, 2020
by
rusty1s
Browse files
fix test
parent
1b956856
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_sample.py
test/test_sample.py
+1
-1
No files found.
test/test_sample.py
View file @
f577fcee
...
@@ -15,7 +15,7 @@ def test_sample_adj():
...
@@ -15,7 +15,7 @@ def test_sample_adj():
row
,
col
,
val
=
out
.
coo
()
row
,
col
,
val
=
out
.
coo
()
assert
row
.
tolist
()
==
[
0
,
0
,
0
,
0
,
1
,
2
,
2
,
3
,
3
]
assert
row
.
tolist
()
==
[
0
,
0
,
0
,
0
,
1
,
2
,
2
,
3
,
3
]
assert
col
.
tolist
()
==
[
2
,
3
,
4
,
5
,
4
,
0
,
3
,
0
,
2
]
assert
col
.
tolist
()
==
[
2
,
3
,
4
,
5
,
4
,
0
,
3
,
0
,
2
]
assert
val
.
tolist
()
==
[
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
]
assert
val
.
tolist
()
==
[
7
,
8
,
5
,
6
,
9
,
10
,
11
,
12
,
13
]
out
,
n_id
=
sample_adj
(
adj_t
,
torch
.
arange
(
2
,
6
),
num_neighbors
=
2
,
out
,
n_id
=
sample_adj
(
adj_t
,
torch
.
arange
(
2
,
6
),
num_neighbors
=
2
,
replace
=
True
)
replace
=
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