Remove the hard dependency of distribute_coordinator.CoordinatorMode in keras.

PiperOrigin-RevId: 339311858
Change-Id: Ie943fe2e9ff32c20be49e2c88a908c614386ccd4
This commit is contained in:
Scott Zhu 2020-10-27 13:03:40 -07:00 committed by TensorFlower Gardener
parent 5b768f5917
commit a9c9fff285
2 changed files with 2 additions and 2 deletions

View File

@ -6513,7 +6513,7 @@ def configure_and_create_distributed_session(distribution_strategy):
dc.run_distribute_coordinator(
_create_session,
distribution_strategy,
mode=dc.CoordinatorMode.INDEPENDENT_WORKER)
mode='independent_worker')
else:
_create_session(distribution_strategy)

View File

@ -777,7 +777,7 @@ def _train_with_multi_worker(method):
return dc.run_distribute_coordinator(
_worker_fn,
model._distribution_strategy,
mode=dc.CoordinatorMode.INDEPENDENT_WORKER)
mode='independent_worker')
return wrapper