vandanavk commented on a change in pull request #12457: [MXNET-885] ONNX export
- Clip operator
URL: https://github.com/apache/incubator-mxnet/pull/12457#discussion_r215690035
##########
File path: python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
##########
@@ -1057,6 +1057,34 @@ def convert_flatten(node, **kwargs):
)
return [flatten_node]
+@mx_op.register("clip")
+def convert_clip(node, **kwargs):
+ """Map MXNet's Clip operator attributes to onnx's Clip operator
+ and return the created node.
+ """
+ helper, _, _ = import_onnx_modules()
+ name = node["name"]
Review comment:
As discussed offline, name, index_lookup, proc_nodes are never missing.
Hence, not adding checks in this PR.
----------------------------------------------------------------
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