diff options
author | 2018-05-03 22:01:39 -0700 | |
---|---|---|
committer | 2018-05-04 10:42:01 -0700 | |
commit | 8ec11ae8eb7b97caced73ed3971209236e2aef5c (patch) | |
tree | c81c4658dd6f051a7b7ca428275f463d4148e31b /tensorflow/contrib/distribute/python/mirrored_strategy.py | |
parent | 0abbff6c0bdf0ee4690def786513298afc8b772a (diff) |
Add the MultiWorkerMirroredStrategy
PiperOrigin-RevId: 195368876
Diffstat (limited to 'tensorflow/contrib/distribute/python/mirrored_strategy.py')
-rw-r--r-- | tensorflow/contrib/distribute/python/mirrored_strategy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/contrib/distribute/python/mirrored_strategy.py b/tensorflow/contrib/distribute/python/mirrored_strategy.py index 2e57b02583..8237b23dbb 100644 --- a/tensorflow/contrib/distribute/python/mirrored_strategy.py +++ b/tensorflow/contrib/distribute/python/mirrored_strategy.py @@ -80,6 +80,7 @@ class MirroredStrategy(distribute_lib.DistributionStrategy): dict((d, i) for i, d in enumerate(devices))) self._cross_tower_ops = cross_tower_ops self._prefetch_on_device = prefetch_on_device + # TODO(yuefengz): consider setting the default device. def _create_variable(self, next_creator, *args, **kwargs): """Create a mirrored variable. See `DistributionStrategy.scope`.""" |