braindotai commented on issue #15496: Loaded pretrained model but train 
accuracy starts from zero,
URL: 
https://github.com/apache/incubator-mxnet/issues/15496#issuecomment-510847042
 
 
   Below code should work
   ```python
   model.save_checkpoint('model', epoch = 0)
   
   sym, arg_params, aux_params = mx.model.load_checkpoint('model', epoch = 0)
   
   model = mx.mod.Module(sym, context = mx.gpu())
   model.bind(data_shapes = train_data.provide_data, label_shapes = 
train_data.provide_label)
   model.set_params(arg_params, aux_params)
   
   ```

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


With regards,
Apache Git Services

Reply via email to