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/09/17 13:59:13 UTC

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

alexst07 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-532233595
 
 
   @vandanavk even your example gave me an error:
   
   ```
    File "conversion.py", line 14, in <module>
       converted_model_path = onnx_mxnet.export_model('resnet18_v2-symbol.json', 'resnet18_v2-0000.params', [(1,3,224,224)], np.float32, 'test_resnet18.onnx')
     File "/home/alex/anaconda3/lib/python3.7/site-packages/mxnet/contrib/onnx/mx2onnx/export_model.py", line 83, in export_model
       verbose=verbose)
     File "/home/alex/anaconda3/lib/python3.7/site-packages/mxnet/contrib/onnx/mx2onnx/export_onnx.py", line 312, in create_onnx_graph_proto
       checker.check_graph(graph)
     File "/home/alex/anaconda3/lib/python3.7/site-packages/onnx/checker.py", line 52, in checker
       proto.SerializeToString(), ctx)
   onnx.onnx_cpp2py_export.checker.ValidationError: Unrecognized attribute: spatial for operator BatchNormalization
   
   ==> Context: Bad node spec: input: "data" input: "resnetv20_batchnorm0_gamma" input: "resnetv20_batchnorm0_beta" input: "resnetv20_batchnorm0_running_mean" input: "resnetv20_batchnorm0_running_var" output: "resnetv20_batchnorm0_fwd" name: "resnetv20_batchnorm0_fwd" op_type: "BatchNormalization" attribute { name: "epsilon" f: 1e-05 type: FLOAT } attribute { name: "momentum" f: 0.9 type: FLOAT } attribute { name: "spatial" i: 0 type: INT }
   ```
   
   And yes, I had the same error of @lookup1980 before.

----------------------------------------------------------------
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