Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
with seed for 2 random large array tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Feb 24, 2019
1 parent 8818dea commit 482fdef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import mxnet as mx
import numpy as np
from mxnet import gluon, nd
from tests.python.unittest.common import with_seed

# dimension constants
MEDIUM_X = 10000
Expand Down Expand Up @@ -45,10 +46,12 @@ def test_ndarray_ones():
assert a[-1][0] == 1
assert nd.sum(a).asnumpy() == LARGE_SIZE

@with_seed()
def test_ndarray_random_uniform():
a = nd.random.uniform(shape=(LARGE_X, SMALL_Y))
assert a[-1][0] != 0

@with_seed()
def test_ndarray_random_randint():
a = nd.random.randint(100, 10000, shape=(LARGE_X, SMALL_Y))
assert a.shape == (LARGE_X, SMALL_Y)
Expand Down

0 comments on commit 482fdef

Please sign in to comment.