Searched refs:CrossShardOptimizer (Results 1 – 7 of 7) sorted by relevance
419 if not isinstance(opt(), tpu_optimizer.CrossShardOptimizer):420 return lambda: tpu_optimizer.CrossShardOptimizer(opt())421 elif not isinstance(opt, tpu_optimizer.CrossShardOptimizer):422 return tpu_optimizer.CrossShardOptimizer(opt)
101 cls._generator_optimizer = tpu_optimizer.CrossShardOptimizer(103 cls._discriminator_optimizer = tpu_optimizer.CrossShardOptimizer(
31 class CrossShardOptimizer(optimizer.Optimizer): class56 super(CrossShardOptimizer, self).__init__(False, name)
22 optimizer = tpu_optimizer.CrossShardOptimizer(
61 optimizer = tpu_optimizer.CrossShardOptimizer(185 - In `model_fn`, use `tf.contrib.tpu.CrossShardOptimizer` to wrap your188 optimizer = tpu_optimizer.CrossShardOptimizer(
138 optimizer = tf.contrib.tpu.CrossShardOptimizer(optimizer)
383 return tpu_optimizer.CrossShardOptimizer(opt.optimizer)