提交 ecaa3105 authored 作者: Reyhane Askari's avatar Reyhane Askari

expectedFailure_fast added to 5 tests

上级 9e4514e2
...@@ -886,6 +886,7 @@ class T_Scan(unittest.TestCase): ...@@ -886,6 +886,7 @@ class T_Scan(unittest.TestCase):
utt.assert_allclose(numpy_out, theano_out) utt.assert_allclose(numpy_out, theano_out)
# simple rnn ; compute inplace version 1 # simple rnn ; compute inplace version 1
@utt.expectedFailure_fast
def test_inplace1(self): def test_inplace1(self):
rng = np.random.RandomState(utt.fetch_seed()) rng = np.random.RandomState(utt.fetch_seed())
vW = asarrayX(np.random.uniform()) vW = asarrayX(np.random.uniform())
...@@ -950,6 +951,7 @@ class T_Scan(unittest.TestCase): ...@@ -950,6 +951,7 @@ class T_Scan(unittest.TestCase):
utt.assert_allclose(theano_x1, numpy_x1) utt.assert_allclose(theano_x1, numpy_x1)
# simple rnn ; compute inplace version 2 # simple rnn ; compute inplace version 2
@utt.expectedFailure_fast
def test_inplace2(self): def test_inplace2(self):
rng = np.random.RandomState(utt.fetch_seed()) rng = np.random.RandomState(utt.fetch_seed())
vW = asarrayX(np.random.uniform()) vW = asarrayX(np.random.uniform())
...@@ -1021,6 +1023,7 @@ class T_Scan(unittest.TestCase): ...@@ -1021,6 +1023,7 @@ class T_Scan(unittest.TestCase):
utt.assert_allclose(theano_x0, numpy_x0) utt.assert_allclose(theano_x0, numpy_x0)
utt.assert_allclose(theano_x1, numpy_x1) utt.assert_allclose(theano_x1, numpy_x1)
@utt.expectedFailure_fast
def test_inplace3(self): def test_inplace3(self):
rng = np.random.RandomState(utt.fetch_seed()) rng = np.random.RandomState(utt.fetch_seed())
......
...@@ -529,6 +529,7 @@ def test_gemm_opt0(): ...@@ -529,6 +529,7 @@ def test_gemm_opt0():
just_gemm([X, Y, Z, a, b], [Z - a * b * a * T.dot(X, Y)]) just_gemm([X, Y, Z, a, b], [Z - a * b * a * T.dot(X, Y)])
@attr.expectedFailure_fast
def test_gemm_opt_double_gemm(): def test_gemm_opt_double_gemm():
# This is the pattern that shows up in the autoencoder # This is the pattern that shows up in the autoencoder
X, Y, Z, a, b = T.matrix(), T.matrix(), T.matrix(), T.scalar(), T.scalar() X, Y, Z, a, b = T.matrix(), T.matrix(), T.matrix(), T.scalar(), T.scalar()
......
...@@ -1367,6 +1367,7 @@ class TestCompositeCodegen(unittest.TestCase): ...@@ -1367,6 +1367,7 @@ class TestCompositeCodegen(unittest.TestCase):
utt.assert_allclose(f([[1.]]), [[0.]]) utt.assert_allclose(f([[1.]]), [[0.]])
@utt.expectedFailure_fast
def test_log1p(): def test_log1p():
m = theano.config.mode m = theano.config.mode
if m == 'FAST_COMPILE': if m == 'FAST_COMPILE':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论