LookaheadOptimizer-mx icon indicating copy to clipboard operation
LookaheadOptimizer-mx copied to clipboard

error occurred while saving states

Open yanghaojin opened this issue 5 years ago • 1 comments

thanks a lot for your excellent implementation! I just got an issue when trying to call the save_states() function of gluon trainer after the training finished.

error log: ... return pickle.dumps((self.states, self.optimizer) if dump_optimizer else self.states) _pickle.PicklingError: args[0] from newobj args has the wrong class

yanghaojin avatar Sep 16 '19 15:09 yanghaojin

I'm sorry that I reply late.

I have fixed it in https://github.com/wkcn/LookaheadOptimizer-mx/commit/d36ac1d9b4c37e28e7c48120c0c67c8a2b220ddd

Thank you for reporting it : )

wkcn avatar Jun 28 '20 15:06 wkcn