[tune/placement group] dist. training placement group support (#11934)

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Keqiu Hu
2020-11-16 01:11:39 -08:00
committed by GitHub
co-authored by Richard Liaw
parent 8fb926565c
commit a50128079d
8 changed files with 337 additions and 67 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ def deep_update(original,
if isinstance(original.get(k), dict) and isinstance(value, dict):
# Check old type vs old one. If different, override entire value.
if k in override_all_if_type_changes and \
"type" in value and "type" in original[k] and \
"type" in value and "type" in original[k] and \
value["type"] != original[k]["type"]:
original[k] = value
# Allowed key -> ok to add new subkeys.