提交 6ce86f38 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Make sure the gpuarray scan tests can run even if there has been no

previous tests.
上级 cd253ea9
......@@ -4956,6 +4956,7 @@ class T_Scan_Gpuarray(unittest.TestCase, ScanGpuTests):
super(T_Scan_Gpuarray, self).__init__(*args, **kwargs)
def setUp(self):
import theano.gpuarray.tests.config
# Skip the test if pygpu is not available
if not self.gpu_backend.pygpu_activated:
raise SkipTest('Optional package pygpu disabled')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论