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.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community
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)