提交 3cabbcd9 authored 作者: slefrancois's avatar slefrancois

teardown to @classmethod

上级 ed0a0e49
...@@ -336,8 +336,9 @@ class TestCpuConv2d(BaseTestConv2d): ...@@ -336,8 +336,9 @@ class TestCpuConv2d(BaseTestConv2d):
cls.opt_err = theano.config.on_opt_error cls.opt_err = theano.config.on_opt_error
theano.config.on_opt_error = 'ignore' theano.config.on_opt_error = 'ignore'
def tearDown(self): @classmethod
theano.config.on_opt_error = self.opt_err def tearDown(cls):
theano.config.on_opt_error = cls.opt_err
def tcase(self, i, f, s, b, flip, provide_shape, fd=(1, 1)): def tcase(self, i, f, s, b, flip, provide_shape, fd=(1, 1)):
if fd != (1, 1): if fd != (1, 1):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论