mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Fix hydra binds breaks in offline mode (#1215)
This commit is contained in:
parent
96ae6a90de
commit
6d1ac2db6a
@ -1360,13 +1360,19 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
"Delete hyper-parameter is not supported by your clearml-server, "
|
||||
"upgrade to the latest version")
|
||||
|
||||
force_kwargs = {}
|
||||
if Session.check_min_api_version("2.13"):
|
||||
force_kwargs["force"] = force
|
||||
|
||||
with self._edit_lock:
|
||||
paramkey = tasks.ParamKey(section=name.split('/', 1)[0], name=name.split('/', 1)[1])
|
||||
res = self.send(tasks.DeleteHyperParamsRequest(
|
||||
task=self.id, hyperparams=[paramkey], force=force), raise_on_errors=False)
|
||||
paramkey = tasks.ParamKey(section=name.split("/", 1)[0], name=name.split("/", 1)[1])
|
||||
res = self.send(
|
||||
tasks.DeleteHyperParamsRequest(task=self.id, hyperparams=[paramkey], **force_kwargs),
|
||||
raise_on_errors=False,
|
||||
)
|
||||
self.reload()
|
||||
|
||||
return res.ok()
|
||||
return res.ok() if not self._offline_mode else True
|
||||
|
||||
def update_parameters(self, *args, **kwargs):
|
||||
# type: (*dict, **Any) -> ()
|
||||
|
Loading…
Reference in New Issue
Block a user