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

Fix timeout 1200sec issue for large tensor tests #18201

Merged
merged 1 commit into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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