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
2a571e28
Commit
2a571e28
authored
Dec 16, 2017
by
rusty1s
Browse files
better import
parent
e3940621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
torch_scatter/__init__.py
torch_scatter/__init__.py
+1
-7
torch_scatter/functions/__init__.py
torch_scatter/functions/__init__.py
+6
-0
No files found.
torch_scatter/__init__.py
View file @
2a571e28
from
.functions
import
(
scatter_add_
,
scatter_add
,
scatter_sub
,
scatter_sub_
,
from
.functions
import
*
# noqa
scatter_mul
,
scatter_mul_
,
scatter_div
,
scatter_div_
)
__all__
=
[
'scatter_add_'
,
'scatter_add'
,
'scatter_sub_'
,
'scatter_sub'
,
'scatter_mul_'
,
'scatter_mul'
,
'scatter_div_'
,
'scatter_div'
]
torch_scatter/functions/__init__.py
View file @
2a571e28
...
@@ -36,3 +36,9 @@ def scatter_div_(output, index, input, dim=0):
...
@@ -36,3 +36,9 @@ def scatter_div_(output, index, input, dim=0):
def
scatter_div
(
index
,
input
,
dim
=
0
,
max_index
=
None
,
fill_value
=
1
):
def
scatter_div
(
index
,
input
,
dim
=
0
,
max_index
=
None
,
fill_value
=
1
):
output
=
gen_output
(
index
,
input
,
dim
,
max_index
,
fill_value
)
output
=
gen_output
(
index
,
input
,
dim
,
max_index
,
fill_value
)
return
scatter_div_
(
output
,
index
,
input
,
dim
)
return
scatter_div_
(
output
,
index
,
input
,
dim
)
__all__
=
[
'scatter_add_'
,
'scatter_add'
,
'scatter_sub_'
,
'scatter_sub'
,
'scatter_mul_'
,
'scatter_mul'
,
'scatter_div_'
,
'scatter_div'
]
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