tf.add_n

tf.add_n(
    inputs,
    name=None
)

Defined in tensorflow/python/ops/math_ops.py.

See the guide: Math > Basic Math Functions

Adds all input tensors element-wise.

Args:

  • inputs: A list of Tensor objects, each with same shape and type.
  • name: A name for the operation (optional).

Returns:

A Tensor of same shape and type as the elements of inputs.

Raises:

  • ValueError: If inputs don't all have same shape and dtype or the shape cannot be inferred.