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
574bc32f
Commit
574bc32f
authored
Apr 01, 2020
by
rusty1s
Browse files
clean up
parent
5f855a28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
20 deletions
+10
-20
.travis.yml
.travis.yml
+1
-1
setup.py
setup.py
+1
-1
torch_cluster/__init__.py
torch_cluster/__init__.py
+8
-18
No files found.
.travis.yml
View file @
574bc32f
...
...
@@ -85,6 +85,6 @@ deploy:
acl
:
public_read
on
:
repo
:
rusty1s/pytorch_cluster
tags
:
true
condition
:
$TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
notifications
:
email
:
false
setup.py
View file @
574bc32f
...
...
@@ -63,7 +63,7 @@ tests_require = ['pytest', 'pytest-cov']
setup
(
name
=
'torch_cluster'
,
version
=
'1.5.
3
'
,
version
=
'1.5.
4
'
,
author
=
'Matthias Fey'
,
author_email
=
'matthias.fey@tu-dortmund.de'
,
url
=
'https://github.com/rusty1s/pytorch_cluster'
,
...
...
torch_cluster/__init__.py
View file @
574bc32f
...
...
@@ -3,24 +3,14 @@ import os.path as osp
import
torch
__version__
=
'1.5.3'
expected_torch_version
=
(
1
,
4
)
try
:
for
library
in
[
'_version'
,
'_grid'
,
'_graclus'
,
'_fps'
,
'_rw'
,
'_sampler'
,
'_nearest'
,
'_knn'
,
'_radius'
]:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
library
,
[
osp
.
dirname
(
__file__
)]).
origin
)
except
OSError
as
e
:
major
,
minor
=
[
int
(
x
)
for
x
in
torch
.
__version__
.
split
(
'.'
)[:
2
]]
t_major
,
t_minor
=
expected_torch_version
if
major
!=
t_major
or
(
major
==
t_major
and
minor
!=
t_minor
):
raise
RuntimeError
(
f
'Expected PyTorch version
{
t_major
}
.
{
t_minor
}
but found '
f
'version
{
major
}
.
{
minor
}
.'
)
raise
OSError
(
e
)
__version__
=
'1.5.4'
for
library
in
[
'_version'
,
'_grid'
,
'_graclus'
,
'_fps'
,
'_rw'
,
'_sampler'
,
'_nearest'
,
'_knn'
,
'_radius'
]:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
library
,
[
osp
.
dirname
(
__file__
)]).
origin
)
if
torch
.
version
.
cuda
is
not
None
:
# pragma: no cover
cuda_version
=
torch
.
ops
.
torch_cluster
.
cuda_version
()
...
...
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