File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 66from datetime import datetime
77from pathlib import Path
88from typing import Any
9- from ignite .contrib .handlers .wandb_logger import WandBLogger
109
1110import torch
1211import ignite .distributed as idist
@@ -215,6 +214,8 @@ def create_plots(engine):
215214 # ------------------------------------------------------------
216215
217216 if rank == 0 :
217+ from ignite .contrib .handlers .wandb_logger import WandBLogger
218+
218219 if isinstance (logger_handler , WandBLogger ):
219220 # why handle differently for wandb ?
220221 # See : https://github.com/pytorch/ignite/issues/1894
Original file line number Diff line number Diff line change 55from datetime import datetime
66from pathlib import Path
77from typing import Any
8- from ignite .contrib .handlers .wandb_logger import WandBLogger
98
109import ignite .distributed as idist
1110from ignite .engine .events import Events
@@ -206,6 +205,8 @@ def _():
206205 # ------------------------------------------------------------
207206
208207 if rank == 0 :
208+ from ignite .contrib .handlers .wandb_logger import WandBLogger
209+
209210 if isinstance (logger_handler , WandBLogger ):
210211 # why handle differently for wandb ?
211212 # See : https://github.com/pytorch/ignite/issues/1894
Original file line number Diff line number Diff line change 55from datetime import datetime
66from pathlib import Path
77from typing import Any
8- from ignite .contrib .handlers .wandb_logger import WandBLogger
98
109import ignite .distributed as idist
1110from ignite .engine .events import Events
@@ -185,6 +184,8 @@ def _():
185184 # ------------------------------------------------------------
186185
187186 if rank == 0 :
187+ from ignite .contrib .handlers .wandb_logger import WandBLogger
188+
188189 if isinstance (logger_handler , WandBLogger ):
189190 # why handle differently for wandb ?
190191 # See : https://github.com/pytorch/ignite/issues/1894
You can’t perform that action at this time.
0 commit comments