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

CI test randomness 3 #9791

Merged
merged 12 commits into from
Feb 18, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Adds with_seed() decorator to gpu tests. Will fail CI due to demo of …
…known failing seeds.
  • Loading branch information
DickJC123 committed Feb 15, 2018
commit ebc142084bc3cc63051ee474f705912161361b6e
5 changes: 5 additions & 0 deletions tests/python/gpu/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
# specific language governing permissions and limitations
# under the License.

import sys
import os
import numpy as np
import mxnet as mx
from mxnet.test_utils import *
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
sys.path.insert(0, os.path.join(curr_path, '../unittest'))
from common import setup_module, with_seed
from mxnet.gluon import utils

def _get_model():
Expand Down Expand Up @@ -51,6 +55,7 @@ def _get_data(shape):
path='data/inception-v3-dump.npz',
sha1_hash=hash_inception_v3)

@with_seed()
def test_consistency(dump=False):
shape = (299, 299)
_get_model()
Expand Down
6 changes: 6 additions & 0 deletions tests/python/gpu/test_kvstore_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@
# under the License.

# pylint: skip-file
import sys
import os
import mxnet as mx
import numpy as np
import unittest
from mxnet.test_utils import assert_almost_equal, default_context
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
sys.path.insert(0, os.path.join(curr_path, '../unittest'))
from common import setup_module, with_seed

shape = (4, 4)
keys = [5, 7, 11]
Expand All @@ -36,6 +41,7 @@ def init_kv_with_str(stype='default', kv_type='local'):
return kv


@with_seed()
def test_rsp_push_pull():
def check_rsp_push_pull(kv_type, is_push_cpu=True):
kv = init_kv_with_str('row_sparse', kv_type)
Expand Down
Loading