Unverified Commit f5073f49 authored by Haoyu Zhang's avatar Haoyu Zhang Committed by GitHub
Browse files

Use flags to define collective ops when initializing MirroredStrategy (#6724)

parent 0f76239b
......@@ -125,7 +125,9 @@ def run(flags_obj):
strategy = distribution_utils.get_distribution_strategy(
distribution_strategy=flags_obj.distribution_strategy,
num_gpus=flags_obj.num_gpus,
num_workers=distribution_utils.configure_cluster())
num_workers=distribution_utils.configure_cluster(),
all_reduce_alg=flags_obj.all_reduce_alg,
num_packs=flags_obj.num_packs)
strategy_scope = distribution_utils.get_strategy_scope(strategy)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment