Skip to content

Commit

Permalink
[DOC] fix sym.arange doc (apache#14237)
Browse files Browse the repository at this point in the history
* fix doc

* Update symbol.py

* Retrigger CI
  • Loading branch information
eric-haibin-lin authored and vdantu committed Mar 31, 2019
1 parent 25d339d commit a6b1a12
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/mxnet/symbol/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,7 @@ def hypot(left, right):
else:
raise TypeError('types (%s, %s) not supported' % (str(type(left)), str(type(right))))


def eye(N, M=0, k=0, dtype=None, **kwargs):
"""Returns a new symbol of 2-D shpae, filled with ones on the diagonal and zeros elsewhere.
Expand Down Expand Up @@ -3002,11 +3003,16 @@ def full(shape, val, dtype=None, **kwargs):
def arange(start, stop=None, step=1.0, repeat=1, infer_range=False, name=None, dtype=None):
"""Returns evenly spaced values within a given interval.
Values are generated within the half-open interval [`start`, `stop`). In other
words, the interval includes `start` but excludes `stop`. The function is
similar to the built-in Python function `range` and to `numpy.arange`,
but returns a `Symbol`.
Parameters
----------
start : number
start : number, optional
Start of interval. The interval includes this value. The default start value is 0.
stop : number, optional
stop : number
End of interval. The interval does not include this value.
step : number, optional
Spacing between values.
Expand Down

0 comments on commit a6b1a12

Please sign in to comment.