Skip to content

Commit

Permalink
try fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Wälchli committed Jun 30, 2020
1 parent 4e3395d commit 2fa87f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def on_train_start(self, trainer, pl_module):

self.filename = '{epoch}'

if trainer.logger is not None and trainer.is_global_zero:
if trainer.logger is not None:
# weights_save_path overrides anything
if getattr(trainer, 'weights_save_path', None) is not None:
save_dir = trainer.weights_save_path
Expand Down
4 changes: 2 additions & 2 deletions tests/loggers/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def on_batch_start(self, trainer, pl_module):
@pytest.mark.parametrize("logger_class", [
TensorBoardLogger,
CometLogger,
MLFlowLogger,
#MLFlowLogger,
NeptuneLogger,
TestTubeLogger,
WandbLogger,
Expand All @@ -159,7 +159,7 @@ def test_logger_created_on_rank_zero_only(tmpdir, logger_class):
model = EvalModelTemplate()
trainer = Trainer(
logger=logger,
# default_root_dir=tmpdir,
default_root_dir=tmpdir,
distributed_backend='ddp_cpu',
num_processes=2,
max_steps=1,
Expand Down

0 comments on commit 2fa87f6

Please sign in to comment.