mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ThomasDelteil commented on issue #11144: Save/Load Model?
Date Wed, 06 Jun 2018 19:18:11 GMT
ThomasDelteil commented on issue #11144: Save/Load Model?
URL: https://github.com/apache/incubator-mxnet/issues/11144#issuecomment-395182660
 
 
   If your model is hybridizable, and you want to shelf it for a while, the recommended way
would be to use `.export('prefix', epoch=0)`.
   That way you can reload it later in a symbol block (right now it takes 3 lines, but soon
a new API will let you do that directly https://github.com/apache/incubator-mxnet/pull/11127#discussion_r192873630),
or in a different language binding altogether.
   
   If you are iterating with your model, the recommend way is `save_params/load_params` for
the parameters, and save the model definition file in a `.py` file or simply pickle it.
   
   You can check this upcoming tutorial. https://github.com/indhub/mxnet/blob/ef1a5fb8ecfaf9f85c26a468cdbcfbfbab58c423/docs/tutorials/gluon/save_load_params.md

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message