You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/08/24 21:49:08 UTC

[GitHub] [incubator-mxnet] vandanavk commented on issue #15788: mxnet convert to onnx: No conversion function registered for op type null yet.

vandanavk commented on issue #15788: mxnet convert to onnx: No conversion function registered for op type null yet.
URL: https://github.com/apache/incubator-mxnet/issues/15788#issuecomment-524583237
 
 
   @lookup1980 could you share your sym and params?
   I tried with the resnet18 model in [GluonCV model zoo ](https://gluon-cv.mxnet.io/model_zoo/classification.html) and dint face any issues.
   
   ```
   import mxnet as mx
   import gluoncv
   from gluoncv import model_zoo
   from mxnet.contrib import onnx as onnx_mxnet
   import numpy as np
   
   net = model_zoo.get_model('resnet18_v2', pretrained=True)
   net.hybridize()
   x = np.zeros([1,3,224,244])
   x = mx.nd.array(x)
   net.forward(x)
   net.export('resnet18_v2')
   
   converted_model_path = onnx_mxnet.export_model('resnet18_v2-symbol.json', 'resnet18_v2-0000.params', [(1,3,224,224)], np.float32, 'test_resnet18.onnx')
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services