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
76ccc51d
Commit
76ccc51d
authored
Feb 19, 2020
by
rusty1s
Browse files
fix tests
parent
af9127e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_permute.py
test/test_permute.py
+1
-1
No files found.
test/test_permute.py
View file @
76ccc51d
...
...
@@ -14,4 +14,4 @@ def test_permute(device):
row
,
col
,
value
=
adj
.
permute
(
torch
.
tensor
([
1
,
0
,
2
])).
coo
()
assert
row
.
tolist
()
==
[
0
,
1
,
1
,
2
,
2
]
assert
col
.
tolist
()
==
[
1
,
0
,
1
,
0
,
2
]
print
(
value
)
assert
value
.
tolist
()
==
[
3
,
2
,
1
,
4
,
5
]
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