提交 d5fb8413 authored 作者: notoraptor's avatar notoraptor

Some light flake8 corrections

上级 61980334
...@@ -39,7 +39,7 @@ class TestCGer(TestCase, TestOptimizationMixin): ...@@ -39,7 +39,7 @@ class TestCGer(TestCase, TestOptimizationMixin):
def setUp(self, dtype='float64'): def setUp(self, dtype='float64'):
# if theano.config.blas.ldflags == "": # if theano.config.blas.ldflags == "":
# raise SkipTest("This test is useful only when Theano" # raise SkipTest("This test is useful only when Theano"
# " is directly linked to blas.") # " is directly linked to blas.")
self.dtype = dtype self.dtype = dtype
self.mode = theano.compile.get_default_mode().including('fast_run') self.mode = theano.compile.get_default_mode().including('fast_run')
self.A = tensor.tensor(dtype=dtype, broadcastable=(False, False)) self.A = tensor.tensor(dtype=dtype, broadcastable=(False, False))
...@@ -126,7 +126,7 @@ class TestCGemv(TestCase, TestOptimizationMixin): ...@@ -126,7 +126,7 @@ class TestCGemv(TestCase, TestOptimizationMixin):
def setUp(self, dtype='float64'): def setUp(self, dtype='float64'):
# if theano.config.blas.ldflags == "": # if theano.config.blas.ldflags == "":
# raise SkipTest("This test is useful only when Theano" # raise SkipTest("This test is useful only when Theano"
# " is directly linked to blas.") # " is directly linked to blas.")
self.dtype = dtype self.dtype = dtype
self.mode = theano.compile.get_default_mode().including('fast_run') self.mode = theano.compile.get_default_mode().including('fast_run')
# matrix # matrix
...@@ -322,6 +322,7 @@ class TestCGemvFloat64(TestCase, BaseGemv, TestOptimizationMixin): ...@@ -322,6 +322,7 @@ class TestCGemvFloat64(TestCase, BaseGemv, TestOptimizationMixin):
class TestBlasStridesC(TestBlasStrides): class TestBlasStridesC(TestBlasStrides):
mode = mode_blas_opt mode = mode_blas_opt
def test_ger_strides(self): def test_ger_strides(self):
skip_if_blas_ldflags_empty('dger_') skip_if_blas_ldflags_empty('dger_')
super(TestBlasStridesC, self).test_ger_strides() super(TestBlasStridesC, self).test_ger_strides()
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论