W3cubDocs

/TensorFlow Python

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.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/add_n