You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/06/27 08:49:40 UTC

[GitHub] [incubator-mxnet] zoeygxy commented on a change in pull request #15381: [Numpy] Add Documentations

zoeygxy commented on a change in pull request #15381: [Numpy] Add Documentations
URL: https://github.com/apache/incubator-mxnet/pull/15381#discussion_r298070305
 
 

 ##########
 File path: python/mxnet/ndarray/numpy/_op.py
 ##########
 @@ -522,22 +641,45 @@ def swapaxes(a, axis1, axis2):
 
 @set_module('mxnet.ndarray.numpy')
 def expand_dims(a, axis):
-    """Expand the shape of an array.
-
+    """
+    Expand the shape of an array.
     Insert a new axis that will appear at the `axis` position in the expanded
-
+    array shape.
+    
     Parameters
     ----------
-    a : ndarray
+    a : array_like
 
 Review comment:
   ``ndarray`` might be better

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services