Open smartwell opened 5 years ago
Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: ONNX, Feature, Bug
ok, l solve this problem
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'})
@smartwell Thanks for filing the issue as well pointing out the potential fix.
I would recommend creating a PR so that experts can review it and add the fix.
@mxnet-label-bot add [ONNX, Pending Requester Info]
i try transform pytorch model to mxnet, here i just test an example, conv,bn,LRule
yes, you can run it successfully. However, when you visual this net, you will see like this:
OP : Pad cames where? even though i debug i can't find this OP. why i discuss this details, because, TVM doesn't have this OP