Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit fe8ef55

Browse files
committed
Improve doc
1 parent 1e2e7ac commit fe8ef55

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

python/mxnet/_numpy_op_doc.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121

2222

2323
def _np_ones_like(a):
24-
"""Return an array of ones with the same shape and type as a given array.
24+
"""
25+
ones_like(a)
26+
27+
Return an array of ones with the same shape and type as a given array.
2528
2629
Parameters
2730
----------
@@ -38,7 +41,10 @@ def _np_ones_like(a):
3841

3942

4043
def _np_zeros_like(a):
41-
"""Return an array of zeros with the same shape and type as a given array.
44+
"""
45+
zeros_like(a)
46+
47+
Return an array of zeros with the same shape and type as a given array.
4248
4349
Parameters
4450
----------
@@ -55,7 +61,10 @@ def _np_zeros_like(a):
5561

5662

5763
def _np_cumsum(a, axis=None, dtype=None, out=None):
58-
"""Return the cumulative sum of the elements along a given axis.
64+
"""
65+
cumsum(a, axis=None, dtype=None, out=None)
66+
67+
Return the cumulative sum of the elements along a given axis.
5968
6069
Parameters
6170
----------
@@ -106,7 +115,10 @@ def _np_cumsum(a, axis=None, dtype=None, out=None):
106115

107116

108117
def _np_repeat(a, repeats, axis=None):
109-
"""Repeat elements of an array.
118+
"""
119+
repeat(a, repeats, axis=None)
120+
121+
Repeat elements of an array.
110122
111123
Parameters
112124
----------

0 commit comments

Comments
 (0)