tf.add_n

Adds all input tensors element-wise.

tf.add_n(
    inputs,
    name=None
)

Converts IndexedSlices objects into dense tensors prior to adding.

Args:

  • inputs: A list of Tensor or IndexedSlices 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.

results matching ""

    No results matching ""