nswamy commented on a change in pull request #12812: [MXNET-886] ONNX export:
HardSigmoid, Less, Greater, Equal
URL: https://github.com/apache/incubator-mxnet/pull/12812#discussion_r235201929
##########
File path: python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
##########
@@ -1545,3 +1545,44 @@ def convert_sum(node, **kwargs):
name=name
)
return [node]
+
+@mx_op.register("hard_sigmoid")
+def convert_hardsigmoid(node, **kwargs):
+ """Map MXNet's hard_sigmoid operator attributes to onnx's HardSigmoid
operator
+ and return the created node.
+ """
+ name, input_nodes, attrs = get_inputs(node, kwargs)
+
Review comment:
add a comment that you are converting float64->float32
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services