arcadiaphy commented on a change in pull request #14745: fix min max on
zero-sized ndarray
URL: https://github.com/apache/incubator-mxnet/pull/14745#discussion_r277122632
##########
File path: tests/python/unittest/test_operator.py
##########
@@ -6990,6 +6990,20 @@ def test_float16_min_max():
assert np.finfo('float16').max == mx.nd.max(a).asscalar()
+@with_seed()
+def test_zero_sized_min_max():
+ def min():
+ a = mx.nd.zeros(shape=(5, 0))
Review comment:
@reminisce You'are right. After #14661, the error I reported will only be
triggered in numpy mode.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services