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

Commit

Permalink
removing skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Kumar Srivastava committed Aug 21, 2019
1 parent 68255d5 commit 229838a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tests/nightly/test_large_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ def test_ndarray_ones():
assert nd.sum(a).asnumpy() == LARGE_X


@unittest.skip("need to fix")
def test_ndarray_convert():
a = nd.zeros(shape=(LARGE_X, SMALL_Y))
b = a.astype(np.int32)
b.wait_to_read()
assert b.dtype == np.int32
b = a.tostype('row_sparse')
b.wait_to_read()
assert isinstance(b, mx.nd.sparse.RowSparseNDArray)


@with_seed()
def test_ndarray_random_uniform():
a = nd.random.uniform(shape=LARGE_X)
Expand Down Expand Up @@ -107,14 +96,6 @@ def test_reduce():
assert nd.sum(a).asnumpy() == a.shape[0] * a.shape[1]


@unittest.skip("need to fix")
def test_dot():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
b = nd.ones(shape=(SMALL_Y, SMALL_Y))
res = nd.dot(a, b)
assert np.sum(res[-1].asnumpy() == SMALL_Y) == b.shape[1]


def test_FullyConnected():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
b = nd.ones(shape=(SMALL_Y, SMALL_Y))
Expand Down Expand Up @@ -200,17 +181,6 @@ def test_Dense(ctx=mx.cpu(0)):
assert res.shape == (LARGE_X, 2)


@unittest.skip("need to fix")
def test_where():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
b = nd.arange(0, LARGE_X * SMALL_Y).reshape(LARGE_X, SMALL_Y)
res = nd.where(b > 100, a, b)
assert np.sum(res[-1].asnumpy() == 1) == b.shape[1]
csr_cond = nd.sparse.cast_storage(b < 10, 'csr')
res = nd.sparse.where(csr_cond, a, b)
assert np.sum(res[0].asnumpy() == 1) == 10


def test_pick():
a = mx.nd.ones(shape=(LARGE_X, 2))
b = mx.nd.ones(shape=LARGE_X)
Expand Down

0 comments on commit 229838a

Please sign in to comment.