How to import mathematica trained mxnet neural net into python and use it there?
Can someone provide a simple example i can use as a template.
Thanks
How to import mathematica trained mxnet neural net into python and use it there?
Can someone provide a simple example i can use as a template.
Thanks
When you export the model, you will get a "json" and "params" file. You can then follow these steps to load the files and import the model into Python:
sym, arg_params, aux_params = mx.model.load_checkpoint(model_prefix, 3)
assert sym.tojson() == net.tojson()
mod.set_params(arg_params, aux_params)
http://mxnet.incubator.apache.org/tutorials/basic/module.html#save-and-load
NetInitialize it to give it random parameters and then import using the syntax you are describing.
– user13892
Oct 31 '18 at 08:41