Commit 0c08a245 authored by Peizhao Zhang's avatar Peizhao Zhang Committed by Facebook GitHub Bot
Browse files

allow AUTO_SCALING_METHODS to be empty.

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/291

Allow AUTO_SCALING_METHODS to be empty.

Reviewed By: tglik, wat3rBro

Differential Revision: D36887643

fbshipit-source-id: 1391ddccfc46389b3f412295fa6540f81bf76368
parent 364be525
......@@ -152,6 +152,9 @@ def auto_scale_world_size(cfg, new_world_size):
if old_world_size == 0 or old_world_size == new_world_size:
return cfg
if len(cfg.SOLVER.AUTO_SCALING_METHODS) == 0:
return cfg
original_cfg = cfg.clone()
frozen = original_cfg.is_frozen()
cfg.defrost()
......
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