From 2009a2e9cac8276bcce206e37145d144388229d7 Mon Sep 17 00:00:00 2001 From: Haibin Lin Date: Fri, 22 Feb 2019 13:04:28 -0800 Subject: [PATCH 1/3] fix doc --- python/mxnet/symbol/symbol.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 3e3e79ed59f7..8118d18febde 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -3002,11 +3002,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 an `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. From d5ca06e796f6ef22d27250f582093ca4981fa744 Mon Sep 17 00:00:00 2001 From: Haibin Lin Date: Fri, 22 Feb 2019 21:51:44 -0800 Subject: [PATCH 2/3] Update symbol.py --- python/mxnet/symbol/symbol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 8118d18febde..886c5119b683 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -3005,7 +3005,7 @@ def arange(start, stop=None, step=1.0, repeat=1, infer_range=False, name=None, d 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 an `Symbol`. + but returns a `Symbol`. Parameters ---------- From 4e1cbbf3dc0a4ab13e4ff008ca38847b01ee9e96 Mon Sep 17 00:00:00 2001 From: JackieWu Date: Mon, 11 Mar 2019 12:09:23 +0800 Subject: [PATCH 3/3] Retrigger CI --- python/mxnet/symbol/symbol.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 886c5119b683..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.