Aliases:
tf.add_n
tf.math.add_n
tf.math.add_n(
inputs,
name=None
)
Defined in tensorflow/python/ops/math_ops.py
.
Adds all input tensors element-wise.
Converts IndexedSlices
objects into dense tensors prior to adding.
Args:
inputs
: A list ofTensor
orIndexedSlices
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
: Ifinputs
don't all have same shape and dtype or the shape cannot be inferred.