anirudhacharya commented on a change in pull request #12457: [MXNET-885] ONNX
export - Clip operator
URL: https://github.com/apache/incubator-mxnet/pull/12457#discussion_r215430448
##########
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:
using `get` method instead of directly trying to access the index might fix
it.
----------------------------------------------------------------
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