I saved my pre-trained model and load it when need re-training, but sometimes I modify the net’s structure and I want the program to automatically check whether the parameters still fit, if not, train the net from scratch. Are there any methods can do this?