Unverified Commit 8f3f8e67 authored by AleksanderWWW's avatar AleksanderWWW Committed by GitHub
Browse files

Fix bug with passing capture_* args to neptune callback (#29041)

* Fix bug with passing capture_* args to neptune callback

* ruff happy?

* instantiate (frozen)set only once

* code review

* code review 2

* ruff happy?

* code review
parent fb1c62e9
...@@ -1265,7 +1265,9 @@ class NeptuneCallback(TrainerCallback): ...@@ -1265,7 +1265,9 @@ class NeptuneCallback(TrainerCallback):
self._stop_run_if_exists() self._stop_run_if_exists()
try: try:
self._run = init_run(**self._init_run_kwargs, **additional_neptune_kwargs) run_params = additional_neptune_kwargs.copy()
run_params.update(self._init_run_kwargs)
self._run = init_run(**run_params)
self._run_id = self._run["sys/id"].fetch() self._run_id = self._run["sys/id"].fetch()
except (NeptuneMissingProjectNameException, NeptuneMissingApiTokenException) as e: except (NeptuneMissingProjectNameException, NeptuneMissingApiTokenException) as e:
raise NeptuneMissingConfiguration() from e raise NeptuneMissingConfiguration() from e
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment