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-scatter
Commits
770fdc16
Commit
770fdc16
authored
Dec 27, 2017
by
rusty1s
Browse files
better version impl
parent
7d13d713
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
VERSION
VERSION
+1
-0
setup.py
setup.py
+5
-1
torch_scatter/__init__.py
torch_scatter/__init__.py
+5
-1
torch_scatter/version.py
torch_scatter/version.py
+0
-1
No files found.
VERSION
0 → 100644
View file @
770fdc16
0.1.0
setup.py
View file @
770fdc16
from
os
import
path
as
osp
from
setuptools
import
setup
,
find_packages
filename
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
'__file__'
)),
'VERSION'
)
with
open
(
filename
,
'r'
)
as
f
:
version
=
f
.
read
().
strip
()
import
build
# noqa
install_requires
=
[
'cffi'
]
...
...
@@ -10,7 +14,7 @@ docs_require = ['Sphinx', 'sphinx_rtd_theme']
setup
(
name
=
'torch_scatter'
,
version
=
'0.1.0'
,
version
=
version
,
description
=
'PyTorch extension for various scatter methods'
,
url
=
'https://github.com/rusty1s/pytorch_scatter'
,
author
=
'Matthias Fey'
,
...
...
torch_scatter/__init__.py
View file @
770fdc16
from
os
import
path
as
osp
from
.functions.add
import
scatter_add_
,
scatter_add
from
.functions.sub
import
scatter_sub_
,
scatter_sub
from
.functions.mul
import
scatter_mul_
,
scatter_mul
...
...
@@ -6,7 +8,9 @@ from .functions.mean import scatter_mean_, scatter_mean
from
.functions.max
import
scatter_max_
,
scatter_max
from
.functions.min
import
scatter_min_
,
scatter_min
from
.version
import
__version__
filename
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
'__file__'
)),
'VERSION'
)
with
open
(
filename
,
'r'
)
as
f
:
__version__
=
f
.
read
().
strip
()
__all__
=
[
'scatter_add_'
,
'scatter_add'
,
'scatter_sub_'
,
'scatter_sub'
,
...
...
torch_scatter/version.py
deleted
100644 → 0
View file @
7d13d713
__version__
=
'0.1.0'
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