"OneDeviceCPU", one_device_strategy.OneDeviceStrategy("/cpu:0"),
None)
tpu_strategy = NamedDistribution(
- "TPU", tpu_strategy.TpuStrategy(), required_tpu=True)
+ "TPU", tpu_strategy.TPUStrategy(), required_tpu=True)
mirrored_strategy_with_gpu_and_cpu = NamedDistribution(
"MirroredCPUAndGPU",
mirrored_strategy.MirroredStrategy(["/gpu:0", "/cpu:0"]), 1)
# TODO(isaprykin): Consider whether inheriting is really appropriate.
-class TpuStrategy(one_device_strategy.OneDeviceStrategy):
+class TPUStrategy(one_device_strategy.OneDeviceStrategy):
def __init__(self, master=None, iterations=None, model_dir=None):
- super(TpuStrategy, self).__init__('/cpu:0')
+ super(TPUStrategy, self).__init__('/cpu:0')
def _call_for_each_tower(self, fn, *args, **kwargs):
kwargs.pop('run_concurrently', None)