Skip to content

Commit

Permalink
Update wandb.py (#1387)
Browse files Browse the repository at this point in the history
* Update wandb.py

* Update wandb.py
  • Loading branch information
Scitator authored Dec 27, 2021
1 parent 6d75c60 commit e0d71c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion catalyst/loggers/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class WandbLogger(ILogger):
(default: SETTINGS.log_batch_metrics or False).
log_epoch_metrics: boolean flag to log epoch metrics
(default: SETTINGS.log_epoch_metrics or True).
kwargs: Optional, additional keyword arguments to be passed directly to the wandb.init
Python API examples:
Expand Down Expand Up @@ -85,13 +86,18 @@ def __init__(
entity: Optional[str] = None,
log_batch_metrics: bool = SETTINGS.log_batch_metrics,
log_epoch_metrics: bool = SETTINGS.log_epoch_metrics,
**kwargs,
) -> None:
super().__init__(log_batch_metrics=log_batch_metrics, log_epoch_metrics=log_epoch_metrics)
self.project = project
self.name = name
self.entity = entity
self.run = wandb.init(
project=self.project, name=self.name, entity=self.entity, allow_val_change=True
project=self.project,
name=self.name,
entity=self.entity,
allow_val_change=True,
**kwargs,
)

@property
Expand Down

0 comments on commit e0d71c6

Please sign in to comment.