提交 151ec94b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Mark first batch of really slow tests.

上级 e7b90016
......@@ -8,6 +8,7 @@ import unittest
import cPickle
import numpy
from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr
from numpy.testing import dec
import theano
......@@ -1525,6 +1526,7 @@ class T_Scan(unittest.TestCase):
analytic_grad[max_err_pos],
num_grad.gx[max_err_pos]))
@attr('slow')
def test_grad_multiple_outs_taps(self):
l = 5
rng = numpy.random.RandomState(utt.fetch_seed())
......@@ -3659,6 +3661,7 @@ class T_Scan(unittest.TestCase):
inp = scan_node.op.outer_non_seqs(scan_node)
assert len(inp) == 1
@attr('slow')
def test_hessian_bug_grad_grad_two_scans(self):
#Bug reported by Bitton Tenessi
......
......@@ -1266,6 +1266,7 @@ class UsmmTests(unittest.TestCase):
self.z = numpy.asarray(self.rng.uniform(-1, 1, z_size),
dtype=theano.config.floatX)
# this is slow, but it's the only test for the op.
def test(self):
def mat(format, name, dtype):
if format == 'dense':
......
......@@ -13,6 +13,7 @@ import __builtin__
builtin_min = __builtin__.min
from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr
import numpy
from numpy.testing import dec, assert_array_equal, assert_allclose
from numpy.testing.noseclasses import KnownFailureTest
......@@ -4050,6 +4051,7 @@ class t_dot(unittest.TestCase):
utt.verify_grad(dot, [rand(2, 3, 4), rand(4, 5)])
utt.verify_grad(dot, [rand(2, 3, 4), rand(3, 4, 5)])
@attr('slow')
def test_broadcastable_patterns(self):
#
......
......@@ -10,6 +10,7 @@ import unittest
import numpy
from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr
from numpy.testing import dec
from numpy.testing.noseclasses import KnownFailureTest
......@@ -2142,6 +2143,7 @@ class test_local_subtensor_merge(unittest.TestCase):
print 'shape: %s' % (x_s,)
print '%% OK: %f' % (float(n_ok) * 100 / (n_ok + n_index_err))
@attr('slow')
def test_none_slice(self):
# Test case of two slices, var[b1:e1:s1][b2:e2:s2]
# where any of the b, e, and s can be None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论