is there something like a clearml context manager to disable automatic logging?
Sure just do a wildcard with the files you actually want to autolog the rest will be ignored:
None
task = Task.init(..., auto_connect_frameworks={'pytorch' : '*.pt'}
Hi everyone,
is there something like a clearml context manager to disable automatic logging? I use torch.save and torch.load to temporarily cache something on disk. I delete it afterwards. I do not want clearml to push it to the clearml-server as an artifact. I am aware I can disable clearml magic for PyTorch, but I rather want to keep it enabled and only disable it for this part of my code. Something like this:
with clearml.no_pytorch_magic():
torch.save(my_obj, "my_path")
del my_obj # and call garbage collector
do_something()
obj = torch.load("my_path", my_obj)
is there something like a clearml context manager to disable automatic logging?
Sure just do a wildcard with the files you actually want to autolog the rest will be ignored:
None
task = Task.init(..., auto_connect_frameworks={'pytorch' : '*.pt'}