You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/03/12 03:29:03 UTC

[GitHub] [incubator-mxnet] wkcn commented on a change in pull request #14237: [DOC] fix sym.arange doc

wkcn commented on a change in pull request #14237: [DOC] fix sym.arange doc
URL: https://github.com/apache/incubator-mxnet/pull/14237#discussion_r264111820
 
 

 ##########
 File path: python/mxnet/symbol/symbol.py
 ##########
 @@ -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
 
 Review comment:
   Why modify it? It seems start doesn't have default value, but stop has one (None)
   
   Edit:
   It is coincident with NumPy.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services