mxnet.ndarray.add_n¶
-
mxnet.ndarray.add_n(*args, **kwargs)¶ Adds all input arguments element-wise.
\[add\_n(a_1, a_2, ..., a_n) = a_1 + a_2 + ... + a_n\]add_nis potentially more efficient than callingaddby n times.The storage type of
add_noutput depends on storage types of inputsadd_n(row_sparse, row_sparse, ..) = row_sparse
add_n(default, csr, default) = default
add_n(any input combinations longer than 4 (>4) with at least one default type) = default
otherwise,
add_nfalls all inputs back to default storage and generates default storage
Defined in src/operator/tensor/elemwise_sum.cc:L156