mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Fix parameter overrides are converted to string when using HPO (#975)
This commit is contained in:
parent
a966e4afd0
commit
6ad3f16bb9
@ -18,7 +18,6 @@ from ..backend_interface.util import get_or_create_project, exact_match_regex
|
|||||||
from ..storage.util import hash_dict
|
from ..storage.util import hash_dict
|
||||||
from ..task import Task
|
from ..task import Task
|
||||||
from ..backend_api.services import tasks as tasks_service
|
from ..backend_api.services import tasks as tasks_service
|
||||||
from ..utilities.proxy_object import verify_basic_type, get_basic_type
|
|
||||||
|
|
||||||
|
|
||||||
logger = getLogger('clearml.automation.job')
|
logger = getLogger('clearml.automation.job')
|
||||||
@ -646,12 +645,8 @@ class ClearmlJob(BaseJob):
|
|||||||
if tags:
|
if tags:
|
||||||
self.task.set_tags(list(set(self.task.get_tags()) | set(tags)))
|
self.task.set_tags(list(set(self.task.get_tags()) | set(tags)))
|
||||||
|
|
||||||
if task_params:
|
if parameter_override:
|
||||||
param_types = {}
|
self.task.update_parameters(parameter_override)
|
||||||
for key, value in task_params.items():
|
|
||||||
if verify_basic_type(value):
|
|
||||||
param_types[key] = get_basic_type(value)
|
|
||||||
self.task.set_parameters(task_params, __parameters_types=param_types)
|
|
||||||
|
|
||||||
# store back Task configuration object into backend
|
# store back Task configuration object into backend
|
||||||
if task_configurations:
|
if task_configurations:
|
||||||
|
Loading…
Reference in New Issue
Block a user