You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/09/05 05:18:18 UTC
[GitHub] [incubator-mxnet] wkcn commented on a change in pull request
#16079: Test large vector mean operator and fix a few bugs
wkcn commented on a change in pull request #16079: Test large vector mean operator and fix a few bugs
URL: https://github.com/apache/incubator-mxnet/pull/16079#discussion_r321077060
##########
File path: tests/nightly/test_large_vector.py
##########
@@ -56,15 +55,12 @@ def test_ndarray_random_uniform():
@with_seed()
def test_ndarray_random_randint():
- a = nd.random.randint(100, 10000, shape=LARGE_X)
- assert a.shape == (LARGE_X,)
# check if randint can generate value greater than 2**32 (large)
- low_large_value = 2**32
- high_large_value = 2**34
- a = nd.random.randint(low_large_value, high_large_value, dtype=np.int64)
- low = mx.nd.array([low_large_value], dtype='int64')
- high = mx.nd.array([high_large_value], dtype='int64')
- assert a >= low and a < high
+ low = 4294967296
+ high = 17179869184
Review comment:
`high == 2**34`
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services