Implemented a save and restore procedure for ConvNet.