2017-06-10 7 views

Répondre

1

http://mxnet.io/api/python/callback.html

Essayez d'utiliser l'API mx.callback.

module.fit(iterator, num_epoch=n_epoch, 
... epoch_end_callback = mx.callback.do_checkpoint("mymodel", 1)) 
Start training with [cpu(0)] 
Epoch[0] Resetting Data Iterator 
Epoch[0] Time cost=0.100 
Saved checkpoint to "mymodel-0001.params" 
Epoch[1] Resetting Data Iterator 
Epoch[1] Time cost=0.060 
Saved checkpoint to "mymodel-0002.params"