anirudhacharya commented on a change in pull request #10118: 
[MXNET-106][ONNX-MXNET] Adding ONNX Model zoo tests.
URL: https://github.com/apache/incubator-mxnet/pull/10118#discussion_r177274972
 
 

 ##########
 File path: python/mxnet/contrib/onnx/_import/op_translations.py
 ##########
 @@ -328,6 +354,17 @@ def squeeze(attrs, inputs, cls):
         mxnet_op = symbol.split(mxnet_op, axis=i-1, num_outputs=1, 
squeeze_axis=1)
     return mxnet_op, new_attrs, inputs
 
+def take(attrs, inputs, cls):
+    """ Takes elements from an input array along the given axis.
+    Currently only slicing along axis 0 is supported for now."""
+    return 'take', attrs, inputs
+
+def flatten(attrs, inputs, cls):
+    """Flattens the input array into a 2-D array by collapsing the higher 
dimensions."""
+    #Mxnet does not have axis support.
+    new_attrs = translation_utils._remove_attributes(attrs, ['axis'])
 
 Review comment:
   WE have an operator support confluence page which is being linked in the 
documentation for the API - 
https://cwiki.apache.org/confluence/display/MXNET/ONNX

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to