Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr TupleLoad NameLoad orelse If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad body If CompareNotEq Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Num CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body If CompareGtE NameLoad Num body Expr Call AttributeLoad NameLoad attr CompareLt NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Expr Call AttributeLoad NameLoad attr CompareLt BinOpSub UnaryOpUSub NameLoad Num AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareIs AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Slice SubscriptLoad NameLoad Index Num orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareLt NameLoad Num body Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign SubscriptStore NameLoad Slice NameLoad Return TupleLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call Call NameLoad NameLoad NameLoad decorator_list
N/A N/A numpy chainer cuda chainer function chainer.utils type_check Sum N/A N/A function Function N/A N/A Sum of array elements over a given axis. __init__ N/A N/A self axis N/A None N/A N/A N/A axis None N/A N/A N/A self axis None N/A N/A N/A isinstance axis int N/A N/A N/A self axis N/A axis N/A N/A N/A N/A isinstance axis tuple N/A all N/A N/A isinstance a int N/A a axis N/A N/A N/A N/A len N/A set axis N/A len axis N/A N/A N/A ValueError N/A N/A duplicate value in axis: ({}) format N/A N/A ,  join N/A map str axis N/A N/A self axis axis N/A N/A N/A TypeError None, int or tuple of int are required N/A check_type_forward N/A N/A self in_types N/A N/A N/A N/A N/A type_check expect N/A N/A N/A in_types size 1 N/A N/A N/A in_types N/A 0 dtype N/A numpy float32 N/A N/A N/A self axis None N/A N/A axis N/A self axis N/A N/A N/A axis 0 N/A N/A N/A N/A type_check expect N/A axis N/A N/A in_types N/A 0 ndim N/A N/A N/A N/A type_check expect N/A N/A N/A axis 1 N/A N/A in_types N/A 0 ndim N/A forward N/A N/A self x N/A N/A N/A xp N/A N/A cuda get_array_module x N/A N/A N/A N/A xp asarray N/A N/A N/A x N/A 0 sum axis N/A self axis N/A backward N/A N/A self x gy N/A N/A N/A xp N/A N/A cuda get_array_module x N/A gx N/A N/A xp empty_like N/A x N/A 0 N/A N/A N/A self axis None N/A N/A N/A gx N/A N/A gy N/A 0 N/A N/A gy N/A gy N/A 0 N/A actual_axis N/A N/A axis N/A self axis N/A N/A N/A axis 0 N/A N/A axis N/A N/A len N/A gx shape axis N/A N/A N/A actual_axis append axis N/A axis N/A sorted actual_axis N/A N/A gy N/A N/A xp expand_dims gy axis axis N/A N/A gx N/A gy N/A N/A gx N/A N/A sum N/A N/A x axis N/A None N/A N/A Sum of array elements over a given axis.

    Args:
        x (~chainer.Variable): Elements to sum.
        axis (None, int, or tuple of int): Axis which a sum is performed.
            The default (axis = None) is perform a sum over all the dimensions
            of the input array.

    Returns:
        ~chainer.Variable: Output variable.

     N/A N/A N/A Sum axis x N/A