mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

How to transfer model file(.params) trained by mx.gpu to mx.cpu using for test

Open pinglforever opened this issue 10 years ago • 2 comments

I trained the model to generate .params and .json on my gpu(mx.gpu(0)), I know there will be error when loaded with cpu, so, How to transfer it to a file that can be used under cpu context? thanks!

pinglforever avatar Aug 11 '16 03:08 pinglforever

i have write one: https://github.com/tornadomeet/mxnet-face/blob/master/util/chdevice.py

tornadomeet avatar Aug 11 '16 03:08 tornadomeet

@tornadomeet Great, that' s help me a lot! , thanks!

pinglforever avatar Aug 11 '16 03:08 pinglforever