Skip to content

Commit

Permalink
Refactor codebase to use trainer.loggers over trainer.logger when…
Browse files Browse the repository at this point in the history
… needed (#11920)

Summary:
### New commit log messages
- [7e2f9fbad Refactor codebase to use `trainer.loggers` over `trainer.logger` when needed (#11920)](Lightning-AI/pytorch-lightning#11920)

Reviewed By: edward-io

Differential Revision: D34583686

fbshipit-source-id: 98e557b761555c24ff296fff3ec6881d141fa777
  • Loading branch information
tangbinh authored and facebook-github-bot committed Mar 4, 2022
1 parent d3115fa commit c24d937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion d2go/utils/testing/lightning_train_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_lt_trainer(output_dir: str, cfg):
if cfg.TEST.EVAL_PERIOD > 0
else cfg.SOLVER.MAX_ITER,
callbacks=[checkpoint_callback],
logger=None,
logger=False,
)


Expand Down
4 changes: 2 additions & 2 deletions tests/runner/test_runner_lightning_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get_trainer(self, output_dir: str) -> pl.Trainer:
limit_train_batches=1,
num_sanity_val_steps=0,
callbacks=[checkpoint_callback],
logger=None,
logger=False,
)

def _compare_state_dict(
Expand Down Expand Up @@ -200,7 +200,7 @@ def prepare_for_quant_convert(self, cfg):
limit_train_batches=1,
num_sanity_val_steps=0,
callbacks=callbacks,
logger=None,
logger=False,
)
with EventStorage() as storage:
task.storage = storage
Expand Down

0 comments on commit c24d937

Please sign in to comment.