tf.contrib.distribute.has_distribution_strategy

tf.contrib.distribute.has_distribution_strategy()

Defined in tensorflow/python/training/distribute.py.

Return if there is a current non-default DistributionStrategy.

Returns:

True if inside a with distribution_strategy.scope():.