mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix TrainsJob hyperparams overriding order was not guaranteed
This commit is contained in:
parent
55ac24aa9a
commit
86da29b560
@ -37,9 +37,9 @@ class TrainsJob(object):
|
||||
self.task.set_tags(list(set(self.task.get_tags()) | set(tags)))
|
||||
self.task_parameter_override = None
|
||||
if parameter_override:
|
||||
params = self.task.get_parameters_as_dict()
|
||||
params = self.task.get_parameters(backwards_compatibility=False)
|
||||
params.update(parameter_override)
|
||||
self.task.set_parameters_as_dict(params)
|
||||
self.task.set_parameters(params)
|
||||
self.task_parameter_override = dict(**parameter_override)
|
||||
if task_overrides:
|
||||
# todo: make sure it works
|
||||
|
Loading…
Reference in New Issue
Block a user