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/06/21 09:41:21 UTC

[GitHub] [incubator-mxnet] smartwell edited a comment on issue #15307: from Pytorch model to ONNX model to MXNet model

smartwell edited a comment on issue #15307: from Pytorch model to ONNX model to MXNet model
URL: https://github.com/apache/incubator-mxnet/issues/15307#issuecomment-504355103
 
 
   i think this file has problem mxnet/contrib/onnx/onnx2mx/_op_translations.py  [373 - 377]
   
   ```
       deconv_op = symbol.Deconvolution(inputs[0], inputs[1], bias,
                                        kernel=kernel, stride=stride, pad=padding[0:2], dilate=dilations,
                                        num_filter=num_filter, num_group=num_group, no_bias=no_bias)
   
       return deconv_op, new_attrs, inputs
   ```
   at the same time,i change [342 -346]
   
   ```
   conv_op = symbol.Convolution(inputs[0], inputs[1], bias,
                                    kernel=kernel, stride=stride,pad=padding[0:2], dilate=dilations,
                                    num_filter=num_filter, num_group=num_group, no_bias=no_bias)
   
   return conv_op, new_attrs, inputs
   ```
   
   Leaky_relu should add 	new_attrs = translation_utils._add_extra_attributes(new_attrs, {'act_type': 'leaky'})

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