mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
working on trainer docs
This commit is contained in:
1 parent
309888e403
commit
4cdcdf7688
1 file changed
+1
@@ -852,6 +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
|
||||
|
||||
Reference in new issue
Block a user