提交 0ce1949f authored 作者: Frederic's avatar Frederic

tag tests as slow

上级 e8d02ddb
...@@ -1964,6 +1964,7 @@ class T_Scan(unittest.TestCase): ...@@ -1964,6 +1964,7 @@ class T_Scan(unittest.TestCase):
analytic_grad = reset_rng_grad_fn(v_u, v_x0, vW_in) analytic_grad = reset_rng_grad_fn(v_u, v_x0, vW_in)
utt.assert_allclose(analytic_grad[0][:2], numpy.zeros((2, 2))) utt.assert_allclose(analytic_grad[0][:2], numpy.zeros((2, 2)))
@attr('slow')
def test_grad_multiple_outs_some_disconnected(self): def test_grad_multiple_outs_some_disconnected(self):
# Created on Tue Oct 07 13:28:51 2014 # Created on Tue Oct 07 13:28:51 2014
# @author: vaneetke # @author: vaneetke
......
...@@ -569,6 +569,7 @@ class test_Prod(unittest.TestCase): ...@@ -569,6 +569,7 @@ class test_Prod(unittest.TestCase):
self.mode = mode self.mode = mode
@attr('slow')
def test_verify_grad(self): def test_verify_grad(self):
# including zeros, as the case with zeros is important # including zeros, as the case with zeros is important
...@@ -625,6 +626,7 @@ class test_Prod(unittest.TestCase): ...@@ -625,6 +626,7 @@ class test_Prod(unittest.TestCase):
#unittest_tools.verify_grad(fn5, [x_val]) #unittest_tools.verify_grad(fn5, [x_val])
@attr('slow')
def test_prod_no_zeros_in_input(self): def test_prod_no_zeros_in_input(self):
x = theano.tensor.dmatrix() x = theano.tensor.dmatrix()
x_val = numpy.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype='float32') x_val = numpy.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype='float32')
......
...@@ -548,6 +548,7 @@ class TestFillDiagonal(utt.InferShapeTester): ...@@ -548,6 +548,7 @@ class TestFillDiagonal(utt.InferShapeTester):
assert out[2, 2, 2] == val assert out[2, 2, 2] == val
assert (out == val).sum() == min(a.shape) assert (out == val).sum() == min(a.shape)
@attr('slow')
def test_gradient(self): def test_gradient(self):
utt.verify_grad(fill_diagonal, [numpy.random.rand(5, 8), utt.verify_grad(fill_diagonal, [numpy.random.rand(5, 8),
numpy.random.rand()], numpy.random.rand()],
......
...@@ -1432,6 +1432,7 @@ class TestAdvancedSubtensor(unittest.TestCase): ...@@ -1432,6 +1432,7 @@ class TestAdvancedSubtensor(unittest.TestCase):
class TestInferShape(utt.InferShapeTester): class TestInferShape(utt.InferShapeTester):
@attr('slow')
def test_infer_shape(self): def test_infer_shape(self):
# IncSubtensor # IncSubtensor
admat = dmatrix() admat = dmatrix()
......
...@@ -5,6 +5,7 @@ import os ...@@ -5,6 +5,7 @@ import os
import shutil import shutil
import unittest import unittest
from nose.plugins.attrib import attr
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import numpy import numpy
from numpy import array from numpy import array
...@@ -724,6 +725,7 @@ class T_examples(unittest.TestCase): ...@@ -724,6 +725,7 @@ class T_examples(unittest.TestCase):
assert numpy.allclose(v3, 0.59044123) assert numpy.allclose(v3, 0.59044123)
assert numpy.allclose(v4, 0.59044123) assert numpy.allclose(v4, 0.59044123)
@attr('slow')
def test_examples_real_example(self): def test_examples_real_example(self):
rng = numpy.random rng = numpy.random
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论