save the model/training source code to model checkpoint or logs directory
🚀 Feature
Save the model/training source code to model checkpoint or logs directory
Motivation
Now, the hparams has been saved in yaml file.  Sometimes, we not only change the hparams but also the network arch, the pre-process flow, so if we save the relate source code to model, we will get all the information to restore the model, because the source code is with the model hparams and all other things.
Pitch
add Trainer args parse params, or Checkpoint callback params,  one for wether to save source code, and one for which codes to save