From a175f47c5ca01973a270bc9a81cd538c552489ac Mon Sep 17 00:00:00 2001 From: zubatyuk Date: Sat, 3 Aug 2024 00:52:12 -0400 Subject: [PATCH] fix kwargs.pop in WandBLogger --- ignite/handlers/wandb_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignite/handlers/wandb_logger.py b/ignite/handlers/wandb_logger.py index 0b69fc79d41..c9c05f6e0d0 100644 --- a/ignite/handlers/wandb_logger.py +++ b/ignite/handlers/wandb_logger.py @@ -134,7 +134,7 @@ def __init__(self, *args: Any, **kwargs: Any): "You man install wandb with the command:\n pip install wandb\n" ) if kwargs.get("init", True): - kwargs.pop('init') + kwargs.pop('init', None) wandb.init(*args, **kwargs) def __getattr__(self, attr: Any) -> Any: