mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
use log no print (#940)
This commit is contained in:
1 parent
5dd2afeab1
commit
5d89fed2a6
1 file changed
+1
-1
@@ -84,7 +84,7 @@ class LightningModule(ABC, GradInformation, ModelIO, ModelHooks):
|
||||
|
||||
"""
|
||||
if self.trainer.proc_rank == 0:
|
||||
print(*args, **kwargs)
|
||||
log.info(*args, **kwargs)
|
||||
|
||||
@abstractmethod
|
||||
def forward(self, *args, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user