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
01036d5c
"examples/vscode:/vscode.git/clone" did not exist on "3ceaa280bd1550bc17cd8268cc34278b7f0b9070"
Commit
01036d5c
authored
Feb 13, 2020
by
rusty1s
Browse files
typo
parent
c114e78f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
torch_scatter/__init__.py
torch_scatter/__init__.py
+11
-11
No files found.
torch_scatter/__init__.py
View file @
01036d5c
...
...
@@ -24,17 +24,6 @@ except OSError as e:
else
:
raise
OSError
(
e
)
from
.scatter
import
(
scatter_sum
,
scatter_add
,
scatter_mean
,
scatter_min
,
scatter_max
,
scatter
)
from
.segment_csr
import
(
segment_sum_csr
,
segment_add_csr
,
segment_mean_csr
,
segment_min_csr
,
segment_max_csr
,
segment_csr
,
gather_csr
)
from
.segment_coo
import
(
segment_sum_coo
,
segment_add_coo
,
segment_mean_coo
,
segment_min_coo
,
segment_max_coo
,
segment_coo
,
gather_coo
)
from
.composite
import
(
scatter_std
,
scatter_logsumexp
,
scatter_softmax
,
scatter_log_softmax
)
cuda_version
=
torch
.
ops
.
torch_scatter
.
cuda_version
()
if
cuda_version
!=
-
1
and
torch
.
version
.
cuda
is
not
None
:
# pragma: no cover
if
cuda_version
<
10000
:
...
...
@@ -52,6 +41,17 @@ if cuda_version != -1 and torch.version.cuda is not None: # pragma: no cover
f
'
{
major
}
.
{
minor
}
. Please reinstall the torch_scatter that '
f
'matches your PyTorch install.'
)
from
.scatter
import
(
scatter_sum
,
scatter_add
,
scatter_mean
,
scatter_min
,
scatter_max
,
scatter
)
from
.segment_csr
import
(
segment_sum_csr
,
segment_add_csr
,
segment_mean_csr
,
segment_min_csr
,
segment_max_csr
,
segment_csr
,
gather_csr
)
from
.segment_coo
import
(
segment_sum_coo
,
segment_add_coo
,
segment_mean_coo
,
segment_min_coo
,
segment_max_coo
,
segment_coo
,
gather_coo
)
from
.composite
import
(
scatter_std
,
scatter_logsumexp
,
scatter_softmax
,
scatter_log_softmax
)
__all__
=
[
'scatter_sum'
,
'scatter_add'
,
...
...
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