W3cubDocs

/TensorFlow Python

tf.contrib.nccl.reduce_sum

reduce_sum(
    tensors,
    dst_device
)

Defined in tensorflow/contrib/nccl/python/ops/nccl_ops.py.

Returns a tensor with the reduce sum across tensors.

The computation is done with a reduce operation, so only one tensor is returned.

Args:

  • tensors: The input tensors across which to sum; must be assigned to GPU devices.
  • dst_device: The device of the returned tensor.

Returns:

A tensor containing the sum of the input tensors, with the device of the tensor being dst_device.

© 2017 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/contrib/nccl/reduce_sum