Fix Hydra overrides integration (#1120)

This commit is contained in:
allegroai 2023-09-25 22:16:54 +03:00
parent 96646dc46a
commit b83baa6f2e

View File

@ -89,7 +89,7 @@ class PatchHydra(object):
if overrides and not isinstance(overrides, (list, tuple)):
overrides = [overrides]
overrides += ['{}={}'.format(k, v) for k, v in stored_config.items()]
overrides = ["+" + (o if o.startswith("+") and not o.startswith("++") else o) for o in overrides]
overrides = [("+" + o) if (o.startswith("+") and not o.startswith("++")) else o for o in overrides]
else:
# We take care of it inside the _patched_run_job
pass