Rank zero logging (#124)
* add rank zero logger * prevent multiple printing of config in multi-gpu setup * fix formatting
This commit is contained in:
1 parent
e2c8ed4bf8
commit
296c5bf5ed
2 files changed
+23
-23
No files matched your search
+1
-2
@@ -1,4 +1,3 @@
|
||||
import logging
|
||||
from typing import List, Optional
|
||||
|
||||
from pytorch_lightning import LightningModule, LightningDataModule, Callback, Trainer
|
||||
@@ -10,7 +9,7 @@ from omegaconf import DictConfig
|
||||
|
||||
from src.utils import template_utils
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
log = template_utils.get_logger(__name__)
|
||||
|
||||
|
||||
def train(config: DictConfig) -> Optional[float]:
|
||||
|
||||
Reference in new issue
Block a user