mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
refactored model tests
This commit is contained in:
1 parent
c7ad04be57
commit
24ceafa05c
1 file changed
+2
-2
@@ -184,8 +184,8 @@ def run_gpu_model_test(trainer_options):
|
||||
checkpoint = ModelCheckpoint(save_dir)
|
||||
|
||||
# add these to the trainer options
|
||||
trainer_options.checkpoint_callback = checkpoint
|
||||
trainer_options.experiment = exp
|
||||
trainer_options['checkpoint_callback'] = checkpoint
|
||||
trainer_options['experiment'] = exp
|
||||
|
||||
# fit model
|
||||
trainer = Trainer(**trainer_options)
|
||||
|
||||
Reference in new issue
Block a user