Open engineer1109 opened 5 years ago
parser.add_argument('--save-model', action='store_true', default=False, help='For Saving the current Model') default rewrite True in parameter
@gaohaihui I mean the minst.cpp ,c++ api ,not python
You can save all layers weights and bias at a vector, and torch::save and torch::load will be useful in this situation. Any easier implement ? Plz comment.
cc: @yf225
Here is a very stupid but useful implement of model_load and model_save.
In model_load, Load a std::vector
How to save the model in cpp api mnist.cpp? model.save and torch::save(model,"mnisttrain.pkl") All error