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
4833b184
Commit
4833b184
authored
Jun 26, 2021
by
rusty1s
Browse files
[ci skip]
parent
f342db64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
setup.py
setup.py
+1
-0
torch_sparse/__init__.py
torch_sparse/__init__.py
+2
-11
No files found.
setup.py
View file @
4833b184
...
@@ -31,6 +31,7 @@ def get_extensions():
...
@@ -31,6 +31,7 @@ def get_extensions():
extensions_dir
=
osp
.
join
(
'csrc'
)
extensions_dir
=
osp
.
join
(
'csrc'
)
main_files
=
glob
.
glob
(
osp
.
join
(
extensions_dir
,
'*.cpp'
))
main_files
=
glob
.
glob
(
osp
.
join
(
extensions_dir
,
'*.cpp'
))
main_files
=
[
'csrc/version.cpp'
,
'csrc/metis.cpp'
]
main_files
=
[
'csrc/version.cpp'
,
'csrc/metis.cpp'
]
main_files
=
[
'csrc/version.cpp'
]
for
main
,
suffix
in
product
(
main_files
,
suffices
):
for
main
,
suffix
in
product
(
main_files
,
suffices
):
define_macros
=
[]
define_macros
=
[]
...
...
torch_sparse/__init__.py
View file @
4833b184
...
@@ -8,17 +8,8 @@ __version__ = '0.6.10'
...
@@ -8,17 +8,8 @@ __version__ = '0.6.10'
suffix
=
'cuda'
if
torch
.
cuda
.
is_available
()
else
'cpu'
suffix
=
'cuda'
if
torch
.
cuda
.
is_available
()
else
'cpu'
for
library
in
[
for
library
in
[
'_version'
,
'_version'
,
'_convert'
,
'_diag'
,
'_spmm'
,
'_spspmm'
,
'_metis'
,
'_rw'
,
# '_convert',
'_saint'
,
'_sample'
,
'_ego_sample'
,
'_relabel'
# '_diag',
# '_spmm',
# '_spspmm',
'_metis'
,
# '_rw',
# '_saint',
# '_sample',
# '_ego_sample',
# '_relabel',
]:
]:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
f
'
{
library
}
_
{
suffix
}
'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
f
'
{
library
}
_
{
suffix
}
'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
...
...
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