Fix Task.connect() sets wrong types if task was never ran locally

This commit is contained in:
allegroai 2022-12-13 16:02:36 +02:00
parent 8076e387ab
commit 694ffc160b

View File

@ -1207,7 +1207,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
section_name, key = k.split('/', 1) section_name, key = k.split('/', 1)
section = hyperparams.get(section_name, dict()) section = hyperparams.get(section_name, dict())
org_param = org_hyperparams.get(section_name, dict()).get(key, None) org_param = org_hyperparams.get(section_name, dict()).get(key, None)
param_type = params_types[org_k] if org_k in params_types else ( param_type = params_types.get(org_k) or (
org_param.type if org_param is not None and org_param.type else 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 get_basic_type(v) if v is not None else None
) )