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

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Sep 13, 2019
1 parent 1e2e7ac commit fe8ef55
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions python/mxnet/_numpy_op_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@


def _np_ones_like(a):
"""Return an array of ones with the same shape and type as a given array.
"""
ones_like(a)
Return an array of ones with the same shape and type as a given array.
Parameters
----------
Expand All @@ -38,7 +41,10 @@ def _np_ones_like(a):


def _np_zeros_like(a):
"""Return an array of zeros with the same shape and type as a given array.
"""
zeros_like(a)
Return an array of zeros with the same shape and type as a given array.
Parameters
----------
Expand All @@ -55,7 +61,10 @@ def _np_zeros_like(a):


def _np_cumsum(a, axis=None, dtype=None, out=None):
"""Return the cumulative sum of the elements along a given axis.
"""
cumsum(a, axis=None, dtype=None, out=None)
Return the cumulative sum of the elements along a given axis.
Parameters
----------
Expand Down Expand Up @@ -106,7 +115,10 @@ def _np_cumsum(a, axis=None, dtype=None, out=None):


def _np_repeat(a, repeats, axis=None):
"""Repeat elements of an array.
"""
repeat(a, repeats, axis=None)
Repeat elements of an array.
Parameters
----------
Expand Down

0 comments on commit fe8ef55

Please sign in to comment.