Skip to content

Commit e0d71c6

Browse files
authored
Update wandb.py (#1387)
* Update wandb.py * Update wandb.py
1 parent 6d75c60 commit e0d71c6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

catalyst/loggers/wandb.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class WandbLogger(ILogger):
2525
(default: SETTINGS.log_batch_metrics or False).
2626
log_epoch_metrics: boolean flag to log epoch metrics
2727
(default: SETTINGS.log_epoch_metrics or True).
28+
kwargs: Optional, additional keyword arguments to be passed directly to the wandb.init
2829
2930
Python API examples:
3031
@@ -85,13 +86,18 @@ def __init__(
8586
entity: Optional[str] = None,
8687
log_batch_metrics: bool = SETTINGS.log_batch_metrics,
8788
log_epoch_metrics: bool = SETTINGS.log_epoch_metrics,
89+
**kwargs,
8890
) -> None:
8991
super().__init__(log_batch_metrics=log_batch_metrics, log_epoch_metrics=log_epoch_metrics)
9092
self.project = project
9193
self.name = name
9294
self.entity = entity
9395
self.run = wandb.init(
94-
project=self.project, name=self.name, entity=self.entity, allow_val_change=True
96+
project=self.project,
97+
name=self.name,
98+
entity=self.entity,
99+
allow_val_change=True,
100+
**kwargs,
95101
)
96102

97103
@property

0 commit comments

Comments
 (0)