contrib.nccl.all_max

tf.contrib.nccl.all_max

tf.contrib.nccl.all_max

all_max(tensors)

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

Returns a list of tensors with the all-reduce max across tensors.

The computation is done with an all-reduce operation, so if only some of the returned tensors are evaluated then the computation will hang.

Args:

  • tensors: The input tensors across which to reduce; must be assigned to GPU devices.

Returns:

List of tensors, each with the maximum of the input tensors, where tensor i has the same device as tensors[i].

© 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/all_max

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部