Merge pull request #22566 from superbobry:default-session-config-chief
PiperOrigin-RevId: 217439914
This commit is contained in:
commit
ea718e872d
@ -566,7 +566,7 @@ class RunConfig(object):
|
||||
elif self._task_type == TaskType.WORKER:
|
||||
device_filters = ['/job:ps', '/job:worker/task:%d' % self._task_id]
|
||||
elif self._task_type == TaskType.PS:
|
||||
device_filters = ['/job:ps', '/job:worker', '/job:master']
|
||||
device_filters = ['/job:ps', '/job:worker', '/job:chief', '/job:master']
|
||||
else:
|
||||
# If the task_type is `EVALUATOR` or something other than the ones in
|
||||
# TaskType then don't set any device filters.
|
||||
|
@ -1196,8 +1196,9 @@ class RunConfigSessionConfigTest(test.TestCase):
|
||||
}
|
||||
}
|
||||
run_config = _create_run_config_with_cluster_spec(tf_config)
|
||||
self._assert_equal_session_config(run_config.session_config,
|
||||
['/job:ps', '/job:worker', '/job:master'])
|
||||
self._assert_equal_session_config(
|
||||
run_config.session_config,
|
||||
['/job:ps', '/job:worker', '/job:chief', '/job:master'])
|
||||
|
||||
def test_evaluator_session_config(self):
|
||||
tf_config = {
|
||||
|
Loading…
Reference in New Issue
Block a user