Enable cluster_coordinator_test on OSS.
PiperOrigin-RevId: 343539254 Change-Id: I254c9f60c19ef39408e6d7982638a477baacda08
This commit is contained in:
parent
5abf12375e
commit
12c8755ecf
tensorflow/python/distribute
@ -40,6 +40,7 @@ tf_py_test(
|
||||
python_version = "PY3",
|
||||
shard_count = 50,
|
||||
tags = [
|
||||
"no_oss", # TODO(b/162119374)
|
||||
"notsan", # TODO(b/171040359): Flaky timeout, even if maximum shards
|
||||
],
|
||||
deps = [
|
||||
|
@ -166,8 +166,8 @@ def create_in_process_cluster(num_workers,
|
||||
|
||||
# The cluster may hang if workers don't have enough inter_op threads. See
|
||||
# b/172296720 for more details.
|
||||
if multiprocessing.cpu_count() < num_workers + 1:
|
||||
worker_config.inter_op_parallelism_threads = num_workers + 1
|
||||
if multiprocessing.cpu_count() < 4:
|
||||
worker_config.inter_op_parallelism_threads = 4
|
||||
|
||||
# Enable collective ops which has no impact on non-collective ops.
|
||||
# TODO(yuefengz, tucker): removing this after we move the initialization of
|
||||
|
Loading…
Reference in New Issue
Block a user