Commit 2a571e28 authored by rusty1s's avatar rusty1s
Browse files

better import

parent e3940621
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'
]
...@@ -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'
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment