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
fcf15650
Commit
fcf15650
authored
Mar 11, 2022
by
rusty1s
Browse files
skip metis test
parent
80fe5c0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test/test_metis.py
test/test_metis.py
+4
-2
No files found.
test/test_metis.py
View file @
fcf15650
import
pytest
from
itertools
import
product
from
itertools
import
product
import
pytest
import
torch
import
torch
from
torch_sparse.tensor
import
SparseTensor
from
torch_sparse.tensor
import
SparseTensor
from
.utils
import
devices
from
.utils
import
devices
try
:
try
:
torch
.
ops
.
torch_sparse
.
partition
rowptr
=
torch
.
tensor
([
0
,
1
])
col
=
torch
.
tensor
([
0
])
torch
.
ops
.
torch_sparse
.
partition
(
rowptr
,
col
,
None
,
1
)
with_metis
=
True
with_metis
=
True
except
RuntimeError
:
except
RuntimeError
:
with_metis
=
False
with_metis
=
False
...
...
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