access2rohit commented on a change in pull request #19324:
URL: https://github.com/apache/incubator-mxnet/pull/19324#discussion_r503754668
##########
File path: tests/nightly/test_np_large_array.py
##########
@@ -1886,3 +1885,36 @@ def test_array_split():
assert out[0][0][0] == 0
assert out[1][-1][-1] == 2
+
+@use_np
+def test_std():
+ N = 2*20
+ inp = np.zeros((2, INT_OVERFLOW))
+ inp[-1, -1] = N
+ inp.attach_grad()
+ with mx.autograd.record():
+ out = np.std(inp, axis=1)
+ out.backward()
+ assert out.shape == (2, )
Review comment:
can we directly comapre the outputs with actual numpy's operators ? call
`import numpy as _np`
Then we probably don't have to worry about correctness of the formula used?
@Zha0q1 wdyt ?
----------------------------------------------------------------
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]