From aaa9ac59d39567326fe8484d60715bbd1a7dd991 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 29 Jan 2019 01:41:58 +0000 Subject: [PATCH 1/5] keeping same contexts for comparison --- tests/python/unittest/test_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 670cc7eb15e0..83b0183c005d 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -1663,7 +1663,7 @@ def test_depthwise_convolution(): dev = default_context() exe1 = y1.simple_bind(dev, x=shape) - exe2 = y2.simple_bind(mx.cpu(), x=shape, w=(num_filter, shape[1]//num_group)+kernel, + exe2 = y2.simple_bind(dev, x=shape, w=(num_filter, shape[1]//num_group)+kernel, b=(num_filter,)) for arr1, arr2 in zip(exe1.arg_arrays, exe2.arg_arrays): arr1[:] = np.random.normal(size=arr1.shape) From 4c893edc2993bb87619bf4b0a2824b9a756ad71e Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 29 Jan 2019 22:44:04 +0000 Subject: [PATCH 2/5] enabling test --- tests/python/unittest/test_operator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 83b0183c005d..6f7772db2d57 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -1632,7 +1632,6 @@ def test_convolution_grouping(): np.testing.assert_allclose(arr1.asnumpy(), arr2.asnumpy(), rtol=1e-3, atol=1e-3) -@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/12203") @with_seed() def test_depthwise_convolution(): for dim in [1,2]: From 1f95d0228178debde14680839bb6abab14c6d049 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 30 Jan 2019 23:45:39 +0000 Subject: [PATCH 3/5] testing default context --- tests/python/unittest/test_operator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 6f7772db2d57..69397a921b8a 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -1662,7 +1662,8 @@ def test_depthwise_convolution(): dev = default_context() exe1 = y1.simple_bind(dev, x=shape) - exe2 = y2.simple_bind(dev, x=shape, w=(num_filter, shape[1]//num_group)+kernel, + print("default context is: ", dev) + exe2 = y2.simple_bind(mx.cpu(), x=shape, w=(num_filter, shape[1]//num_group)+kernel, b=(num_filter,)) for arr1, arr2 in zip(exe1.arg_arrays, exe2.arg_arrays): arr1[:] = np.random.normal(size=arr1.shape) From db8ac44969b47c24dd91b5f01e53187b030b1c15 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 31 Jan 2019 01:13:35 +0000 Subject: [PATCH 4/5] Revert "testing default context" This reverts commit 1f95d0228178debde14680839bb6abab14c6d049. --- tests/python/unittest/test_operator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 69397a921b8a..6f7772db2d57 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -1662,8 +1662,7 @@ def test_depthwise_convolution(): dev = default_context() exe1 = y1.simple_bind(dev, x=shape) - print("default context is: ", dev) - exe2 = y2.simple_bind(mx.cpu(), x=shape, w=(num_filter, shape[1]//num_group)+kernel, + exe2 = y2.simple_bind(dev, x=shape, w=(num_filter, shape[1]//num_group)+kernel, b=(num_filter,)) for arr1, arr2 in zip(exe1.arg_arrays, exe2.arg_arrays): arr1[:] = np.random.normal(size=arr1.shape) From c1299d7a570395c464ce544540c4abed8d094eaa Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 2 Feb 2019 00:25:16 +0000 Subject: [PATCH 5/5] Disabling test due to CI failure on MKL-DNN --- tests/python/unittest/test_operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 0f8d1d12c080..9dd43a1ac2f2 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -1632,6 +1632,7 @@ def test_convolution_grouping(): np.testing.assert_allclose(arr1.asnumpy(), arr2.asnumpy(), rtol=1e-3, atol=1e-3) +@unittest.skip("Flaky test https://github.com/apache/incubator-mxnet/issues/14052") @with_seed() def test_depthwise_convolution(): for dim in [1,2]: