mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix Task.set_parameters()
does not add parameter type when parameter exists but does not have a type
This commit is contained in:
parent
762bc5325f
commit
65d0e15a74
@ -1141,7 +1141,8 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
section = hyperparams.get(section_name, dict())
|
||||
org_param = org_hyperparams.get(section_name, dict()).get(key, None)
|
||||
param_type = params_types[org_k] if org_k in params_types else (
|
||||
org_param.type if org_param is not None else get_basic_type(v) if v is not None else None
|
||||
org_param.type if org_param is not None and org_param.type else
|
||||
get_basic_type(v) if v is not None else None
|
||||
)
|
||||
if param_type and not isinstance(param_type, str):
|
||||
param_type = param_type.__name__ if hasattr(param_type, '__name__') else str(param_type)
|
||||
|
Loading…
Reference in New Issue
Block a user