vandanavk commented on a change in pull request #13806: ONNX ops: norm exported
and lpnormalization imported
URL: https://github.com/apache/incubator-mxnet/pull/13806#discussion_r246223590
##########
File path: python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
##########
@@ -1689,3 +1689,41 @@ def convert_logsoftmax(node, **kwargs):
name=name
)
return [node]
+
+@mx_op.register("norm")
+def convert_norm(node, **kwargs):
+ """Map MXNet's norm operator attributes to onnx's ReduceL1 and ReduceL2
operators
+ and return the created node.
+ """
+ name, input_nodes, attrs = get_inputs(node, kwargs)
+
+ mx_axis = attrs.get("axis", None)
+ axes = convert_string_to_list(str(mx_axis)) if mx_axis is not None else
None
Review comment:
if mx_axis else None
----------------------------------------------------------------
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