mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
working on trainer docs
This commit is contained in:
@@ -852,9 +852,7 @@ class Trainer(TrainerIOMixin,
|
||||
# run test from a loaded model
|
||||
model = LightningModule.load_from_checkpoint('path/to/checkpoint.ckpt')
|
||||
trainer = Trainer()
|
||||
|
||||
trainer.test(model)
|
||||
|
||||
"""
|
||||
self.testing = True
|
||||
if model is not None:
|
||||
|
||||
Reference in New Issue
Block a user