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
df4cde6e
"docs/vscode:/vscode.git/clone" did not exist on "48707255575cb2175517aa86f77a87598d6ca5ea"
Commit
df4cde6e
authored
Feb 13, 2020
by
rusty1s
Browse files
fix build docs
parent
dfa5e1d4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
10 deletions
+31
-10
docs/requirements.txt
docs/requirements.txt
+0
-3
torch_scatter/__init__.py
torch_scatter/__init__.py
+4
-1
torch_scatter/scatter.py
torch_scatter/scatter.py
+9
-2
torch_scatter/segment_coo.py
torch_scatter/segment_coo.py
+9
-2
torch_scatter/segment_csr.py
torch_scatter/segment_csr.py
+9
-2
No files found.
docs/requirements.txt
View file @
df4cde6e
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
numpy
torch_nightly
sphinx
sphinx_rtd_theme
sphinx-autodoc-typehints
torch_scatter/__init__.py
View file @
df4cde6e
...
...
@@ -19,6 +19,9 @@ except OSError as e:
raise
RuntimeError
(
f
'Expected PyTorch version
{
t_major
}
.
{
t_minor
}
but found '
f
'version
{
major
}
.
{
minor
}
.'
)
if
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
:
pass
else
:
raise
OSError
(
e
)
from
.scatter
import
(
scatter_sum
,
scatter_add
,
scatter_mean
,
scatter_min
,
...
...
torch_scatter/scatter.py
View file @
df4cde6e
import
os
import
importlib
import
os.path
as
osp
from
typing
import
Optional
,
Tuple
...
...
@@ -6,8 +7,14 @@ import torch
from
.utils
import
broadcast
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
try
:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
'_scatter'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
except
OSError
as
e
:
if
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
:
pass
else
:
raise
OSError
(
e
)
@
torch
.
jit
.
script
...
...
torch_scatter/segment_coo.py
View file @
df4cde6e
import
os
import
importlib
import
os.path
as
osp
from
typing
import
Optional
,
Tuple
import
torch
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
try
:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
'_segment_coo'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
except
OSError
as
e
:
if
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
:
pass
else
:
raise
OSError
(
e
)
@
torch
.
jit
.
script
...
...
torch_scatter/segment_csr.py
View file @
df4cde6e
import
os
import
importlib
import
os.path
as
osp
from
typing
import
Optional
,
Tuple
import
torch
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
try
:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
'_segment_csr'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
except
OSError
as
e
:
if
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
:
pass
else
:
raise
OSError
(
e
)
@
torch
.
jit
.
script
...
...
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