options for run only sanity check without training in 'run_pretrain_routine'
🚀 Feature
Motivation
for pytest pytorch-lightning based project, the training phase is not essential in some cases (like testing only inference). So adding an argument for running sanity-check without the training phase could be reasonable.
Pitch
run_pretrain_routine(self, model) => run_pretrain_routine(self, model, run_train=True)