tingying2020 commented on a change in pull request #15390: [Numpy
fix-doc]modify numpy doc
URL: https://github.com/apache/incubator-mxnet/pull/15390#discussion_r298874744
##########
File path: python/mxnet/ndarray/numpy/_op.py
##########
@@ -304,6 +340,31 @@ def concatenate(seq, axis=0, out=None):
-------
res : ndarray
The concatenated array.
+
+ Notes
+ -----
+ - Not support axis = None
+
+ >>> np.concatenate((a, b), axis=None)
+ Invalid Parameter format for dim expect int but value='None',
+
+ Examples
+ --------
+ >>> a = np.array([[1, 2], [3, 4]])
+ >>> b = np.array([[5, 6]])
+ >>> np.concatenate((a, b), axis=0)
+ array([[1., 2.],
+ [3., 4.],
+ [5., 6.]])
+ >>> np.concatenate((a, b.T), axis=1)
+ array([[1., 2., 5.],
+ [3., 4., 6.]])
+ >>> c = np.arange(6).reshape((3,2))
+ >>> np.concatenate((a,b), axis=0, out=c)
+ array([[1, 2],
Review comment:
Here you should also change [1, 2] to [1., 2.]
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services