moved dataloaders after amp and optimizers

This commit is contained in:
William Falcon 2019-07-08 17:40:23 -04:00
parent 687a133145
commit 726dd1f61a
1 changed files with 3 additions and 3 deletions

View File

@ -401,11 +401,11 @@ class Trainer(TrainerIO):
self.lr_schedulers.append(scheduler)
# print model summary
model.summarize()
ref_model.summarize()
# give model convenience properties
model.trainer = self
model.experiment = self.experiment
ref_model.trainer = self
ref_model.experiment = self.experiment
# run tiny validation to make sure program won't crash during val
_ = self.validate(model, self.val_dataloader, max_batches=self.nb_sanity_val_steps)