Searched refs:has_strategy (Results 1 – 25 of 29) sorted by relevance
12
201 def has_strategy(): function261 if has_strategy():276 if not has_strategy():303 if not has_strategy():355 has_distribution_strategy = has_strategy
132 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())
319 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():
1150 assert distribution_strategy_context.has_strategy()
52 if ds_context.has_strategy():
52 return not distribution_strategy_context.has_strategy()
118 has_strategy = distribution_strategy_context.has_strategy()120 if not has_strategy or replica_context is None:
151 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():
343 if distribution_strategy_context.has_strategy():1172 if not distribution_strategy_context.has_strategy():
84 name: "has_strategy"
104 name: "has_strategy"
245 if distribution_strategy_context.has_strategy():
402 if distribution_strategy_context.has_strategy():
111 if not distribution_strategy_context.has_strategy():
452 if ds_context.has_strategy():464 if ds_context.has_strategy():
436 if ds.has_strategy() and ds.in_cross_replica_context():479 if ds.has_strategy() and ds.in_cross_replica_context():
405 if distribute_ctx.has_strategy():1409 if self._distribution_strategy and not distribute_ctx.has_strategy():
149 distribution_strategy_context.has_strategy()):352 if distribution_strategy_context.has_strategy():2811 if not strategy and distribution_strategy_context.has_strategy():
305 if ds_context.has_strategy():2580 if self.built and ds_context.has_strategy():
1183 if (ds_context.has_strategy() and
569 if distribute_ctx.has_strategy():
197 distribution_strategy_context.has_strategy() and
793 if distribution_strategy_context.has_strategy():
297 return distribution_strategy_context.has_strategy() and getattr(
222 if not distribution_strategy_context.has_strategy():