tf.contrib.distribute.get_cross_replica_context
Возвращает текущую стратегию tf.distribute, если находится в контексте кросс-репликации.
tf.contrib.distribute.get_cross_replica_context()
УСТАРЕЛО: Пожалуйста, используйте in_cross_replica_context() и get_strategy() вместо этого.
| Возвращает | |
|---|---|
Возвращает текущий объект tf.distribute.Strategy в контексте кросс-репликации или None. В определённом блоке будет возвращено ровно одно из |
© 2020 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/versions/r1.15/api_docs/python/tf/contrib/distribute/get_cross_replica_context