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 2020/07/02 04:18:15 UTC

[GitHub] [incubator-mxnet] cloudhan commented on issue #18509: fail to mxnet to onnx

cloudhan commented on issue #18509:
URL: https://github.com/apache/incubator-mxnet/issues/18509#issuecomment-652771931


   You can monkey patch the conversion script with 
   
   ```python
   from mxnet.contrib import onnx as onnx_mxnet
   from mxnet.contrib.onnx.mx2onnx.export_onnx import MXNetGraph as mx_op
   from mxnet.contrib.onnx.mx2onnx._op_translations import get_inputs, get_boolean_attribute_value, parse_helper, convert_string_to_list
   
   # FUCKSHIT: 1d shape of prelu gamma is not unidirectional broadcastable!!!
   @mx_op.register("LeakyReLU")
   def convert_leakyrelu(node, **kwargs):
       # write your own conversion code here. hint: unsqueeze the gamma
   ```


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