anirudhacharya commented on a change in pull request #12967: [MXNET-1173] Debug
operators - isfinite and isinf
URL: https://github.com/apache/incubator-mxnet/pull/12967#discussion_r227979637
##########
File path: tests/python/unittest/test_ndarray.py
##########
@@ -1495,6 +1495,20 @@ def test_dlpack():
mx.test_utils.assert_almost_equal(a_np, d_np)
mx.test_utils.assert_almost_equal(a_np, e_np)
+@with_seed()
+def test_ndarray_is_inf():
+ data = mx.nd.array([np.inf, -np.inf, np.NINF, -1])
Review comment:
randomize the shape and size of the array in this test case
----------------------------------------------------------------
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