TristonC edited a comment on issue #19941: URL: https://github.com/apache/incubator-mxnet/issues/19941#issuecomment-786192874
I guess that clip should also work (by design) too for this corner case as it should raise the error. Numpy shows this error message for clip mode: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<__array_function__ internals>", line 6, in take File "/home/tristonc/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 194, in take return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode) File "/home/tristonc/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 61, in _wrapfunc return bound(*args, **kwds) IndexError: cannot do a non-empty take from an empty axes. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org For additional commands, e-mail: issues-h...@mxnet.apache.org