Fix parameter overrides are converted to string when using HPO (#975)

This commit is contained in:
allegroai 2024-05-17 10:14:43 +03:00
parent a966e4afd0
commit 6ad3f16bb9

View File

@ -18,7 +18,6 @@ from ..backend_interface.util import get_or_create_project, exact_match_regex
from ..storage.util import hash_dict
from ..task import Task
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')
@ -646,12 +645,8 @@ class ClearmlJob(BaseJob):
if tags:
self.task.set_tags(list(set(self.task.get_tags()) | set(tags)))
if task_params:
param_types = {}
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)
if parameter_override:
self.task.update_parameters(parameter_override)
# store back Task configuration object into backend
if task_configurations: