Skip to content

Commit

Permalink
Disable timeout 1200sec issue for large tensor tests (apache#18201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya authored and AntiZpvoh committed Jul 6, 2020
1 parent 2a48960 commit b24b684
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from mxnet import gluon, nd
from common import with_seed
import unittest
import pytest


# dimension constants
MEDIUM_X = 10000
Expand All @@ -41,6 +43,7 @@
RNN_LARGE_TENSOR = 2**28


@pytest.mark.timeout(0)
def test_nn():
def check_gluon_embedding():
m = gluon.nn.Embedding(SMALL_Y, MEDIUM_X)
Expand Down Expand Up @@ -591,6 +594,7 @@ def check_rnn():
check_rnn()


@pytest.mark.timeout(0)
def test_tensor():
def check_ndarray_zeros():
a = nd.zeros(shape=(LARGE_X, SMALL_Y))
Expand Down Expand Up @@ -1196,6 +1200,7 @@ def check_correctness(mxnet_op, numpy_op, atol=1e-3):
check_binary_broadcast()


@pytest.mark.timeout(0)
def test_basic():
def check_elementwise():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
Expand Down Expand Up @@ -1810,6 +1815,7 @@ def check_minimum():
check_minimum()


@pytest.mark.timeout(0)
def test_sparse_dot():
shape = (2, VLARGE_X)
sp_mat1 = nd.sparse.csr_matrix(([2], [6], [0, 1, 1]), shape=shape)
Expand Down
5 changes: 5 additions & 0 deletions tests/nightly/test_large_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
from mxnet import gluon, nd
from common import with_seed
import unittest
import pytest


# dimension constants
LARGE_X = 4300000000
MEDIUM_X = 1000000000


@pytest.mark.timeout(0)
def test_nn():
def check_dense():
data = mx.nd.ones(shape=LARGE_X)
Expand Down Expand Up @@ -161,6 +164,7 @@ def check_sequence_last():
check_sequence_reverse()


@pytest.mark.timeout(0)
def test_tensor():
def check_ndarray_zeros():
a = nd.zeros(shape=LARGE_X)
Expand Down Expand Up @@ -462,6 +466,7 @@ def check_correctness(mxnet_op, numpy_op, atol=1e-3):
check_binary_broadcast()


@pytest.mark.timeout(0)
def test_basic():
def check_elementwise():
a = nd.ones(shape=LARGE_X)
Expand Down

0 comments on commit b24b684

Please sign in to comment.