szha commented on a change in pull request #12064: Allow stop of arange to be
inferred from dims.
URL: https://github.com/apache/incubator-mxnet/pull/12064#discussion_r210963755
##########
File path: python/mxnet/ndarray/ndarray.py
##########
@@ -2518,8 +2518,8 @@ def arange(start, stop=None, step=1.0, repeat=1,
ctx=None, dtype=mx_real_t):
"""
if ctx is None:
ctx = current_context()
- return _internal._arange(start=start, stop=stop, step=step, repeat=repeat,
- dtype=dtype, ctx=str(ctx))
+ return _internal._arange(start=start, stop=stop, step=step,
infer_range=infer_range,
+ repeat=repeat, dtype=dtype, ctx=str(ctx))
Review comment:
nit: infer_range and repeat keyword arguments swapped place (not that it
matters)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services