From 3e946189abfbb170950afc7f3278f5fd3ba4e119 Mon Sep 17 00:00:00 2001 From: Haibin Lin Date: Mon, 11 Mar 2019 20:29:17 -0700 Subject: [PATCH] [DOC] fix sym.arange doc (#14237) * fix doc * Update symbol.py * Retrigger CI --- python/mxnet/symbol/symbol.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 3e3e79ed59f7..0c0a0a1e3c88 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -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. @@ -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.