mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Disable more flaky tests on CircleCI (#11399)
Summary: Fixes https://github.com/pytorch/pytorch/issues/11362. Pull Request resolved: https://github.com/pytorch/pytorch/pull/11399 Differential Revision: D9736673 Pulled By: yf225 fbshipit-source-id: cad8c0e86a70a01b047e648975ca5b9926e4acb3
This commit is contained in:
parent
d7e11e3aae
commit
7122f8b3bb
|
|
@ -831,6 +831,7 @@ class RecurrentNetworkParallelTest(TestCase):
|
||||||
|
|
||||||
return workspace.FetchBlob("{}_0/partest/i2h_w".format(model._device_prefix))
|
return workspace.FetchBlob("{}_0/partest/i2h_w".format(model._device_prefix))
|
||||||
|
|
||||||
|
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
|
||||||
def test_equiv_recurrent(self):
|
def test_equiv_recurrent(self):
|
||||||
'''
|
'''
|
||||||
Test that the model produces exactly same results given
|
Test that the model produces exactly same results given
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,10 @@ backend_test.exclude('(test_pow_bcast'
|
||||||
if 'JENKINS_URL' in os.environ:
|
if 'JENKINS_URL' in os.environ:
|
||||||
backend_test.exclude(r'(test_vgg19|test_vgg)')
|
backend_test.exclude(r'(test_vgg19|test_vgg)')
|
||||||
|
|
||||||
|
# FIXME: flaky test in CircleCI
|
||||||
|
if "IN_CIRCLECI" in os.environ:
|
||||||
|
backend_test.exclude(r'(test_dynamic_slice_cpu)')
|
||||||
|
|
||||||
# import all test cases at global scope to make them visible to python.unittest
|
# import all test cases at global scope to make them visible to python.unittest
|
||||||
globals().update(backend_test
|
globals().update(backend_test
|
||||||
.enable_report()
|
.enable_report()
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ import caffe2.python.hypothesis_test_util as hu
|
||||||
import hypothesis.strategies as st
|
import hypothesis.strategies as st
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
|
||||||
def sigmoid(x):
|
def sigmoid(x):
|
||||||
return 1.0 / (1.0 + np.exp(-x))
|
return 1.0 / (1.0 + np.exp(-x))
|
||||||
|
|
@ -248,6 +250,7 @@ class TestCrossEntropyOps(hu.HypothesisTestCase):
|
||||||
output_to_grad='xentropy',
|
output_to_grad='xentropy',
|
||||||
grad_reference=weighted_sigmoid_xentr_logit_grad_ref)
|
grad_reference=weighted_sigmoid_xentr_logit_grad_ref)
|
||||||
|
|
||||||
|
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
|
||||||
@given(n=st.integers(2, 10),
|
@given(n=st.integers(2, 10),
|
||||||
b=st.integers(1, 5),
|
b=st.integers(1, 5),
|
||||||
**hu.gcs_cpu_only)
|
**hu.gcs_cpu_only)
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ import caffe2.python.hypothesis_test_util as hu
|
||||||
import hypothesis.strategies as st
|
import hypothesis.strategies as st
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class TestReduceFrontSum(hu.HypothesisTestCase):
|
class TestReduceFrontSum(hu.HypothesisTestCase):
|
||||||
@given(batch_size=st.integers(1, 3),
|
@given(batch_size=st.integers(1, 3),
|
||||||
|
|
@ -111,6 +114,7 @@ class TestReduceFrontSum(hu.HypothesisTestCase):
|
||||||
atol=1e-4,
|
atol=1e-4,
|
||||||
rtol=1e-4)
|
rtol=1e-4)
|
||||||
|
|
||||||
|
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
|
||||||
@given(batch_size=st.integers(1, 3),
|
@given(batch_size=st.integers(1, 3),
|
||||||
stride=st.integers(1, 3),
|
stride=st.integers(1, 3),
|
||||||
pad=st.integers(0, 3),
|
pad=st.integers(0, 3),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user