Home
last modified time | relevance | path

Searched refs:has_strategy (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/python/distribute/
Ddistribution_strategy_context.py201 def has_strategy(): function
261 if has_strategy():
276 if not has_strategy():
303 if not has_strategy():
355 has_distribution_strategy = has_strategy
Ddistribute_lib_test.py132 t.assertFalse(ds_context.has_strategy())
165 self.assertTrue(ds_context.has_strategy())
186 self.assertTrue(ds_context.has_strategy())
266 self.assertTrue(ds_context.has_strategy())
451 self.assertFalse(ds_context.has_strategy())
Ddistribute_lib.py319 if not distribution_strategy_context.has_strategy():
388 if distribution_strategy_context.has_strategy():
3386 if distribution_strategy_context.has_strategy():
3596 if distribution_strategy_context.has_strategy():
Dtpu_strategy_test.py1150 assert distribution_strategy_context.has_strategy()
/external/tensorflow/tensorflow/python/keras/distribute/
Ddistributed_training_utils.py52 if ds_context.has_strategy():
Dkeras_dnn_correctness_test.py52 return not distribution_strategy_context.has_strategy()
/external/tensorflow/tensorflow/python/keras/utils/
Dmetrics_utils.py118 has_strategy = distribution_strategy_context.has_strategy()
120 if not has_strategy or replica_context is None:
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Dautocast_variable_test.py151 if ds_context.has_strategy():
174 if not ds_context.has_strategy():
181 if not ds_context.has_strategy():
193 if not ds_context.has_strategy():
308 if not ds_context.has_strategy() or context.executing_eagerly():
Dloss_scale_optimizer.py343 if distribution_strategy_context.has_strategy():
1172 if not distribution_strategy_context.has_strategy():
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.distribute.pbtxt84 name: "has_strategy"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.distribute.pbtxt104 name: "has_strategy"
/external/tensorflow/tensorflow/python/training/experimental/
Dloss_scaling_gradient_tape.py245 if distribution_strategy_context.has_strategy():
Dloss_scale.py402 if distribution_strategy_context.has_strategy():
Dloss_scale_test.py111 if not distribution_strategy_context.has_strategy():
/external/tensorflow/tensorflow/python/ops/
Dstateful_random_ops.py452 if ds_context.has_strategy():
464 if ds_context.has_strategy():
Dnn_impl.py436 if ds.has_strategy() and ds.in_cross_replica_context():
479 if ds.has_strategy() and ds.in_cross_replica_context():
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Doptimizer_v2.py405 if distribute_ctx.has_strategy():
1409 if self._distribution_strategy and not distribute_ctx.has_strategy():
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_v1.py149 distribution_strategy_context.has_strategy()):
352 if distribution_strategy_context.has_strategy():
2811 if not strategy and distribution_strategy_context.has_strategy():
Dtraining.py305 if ds_context.has_strategy():
2580 if self.built and ds_context.has_strategy():
Dbase_layer_v1.py1183 if (ds_context.has_strategy() and
/external/tensorflow/tensorflow/python/training/
Doptimizer.py569 if distribute_ctx.has_strategy():
/external/tensorflow/tensorflow/python/keras/
Dlosses.py197 distribution_strategy_context.has_strategy() and
Doptimizer_v1.py793 if distribution_strategy_context.has_strategy():
/external/tensorflow/tensorflow/python/keras/layers/
Dnormalization.py297 return distribution_strategy_context.has_strategy() and getattr(
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py222 if not distribution_strategy_context.has_strategy():

12