提交 813c5599 authored 作者: Frederic Bastien's avatar Frederic Bastien

Skip a test if no c++ compiler or in FAST_COMPILE.

上级 584e3cd1
from __future__ import (division, absolute_import, print_function) from __future__ import (division, absolute_import, print_function)
import unittest import unittest
from nose.plugins.skip import SkipTest
import numpy as np import numpy as np
import theano import theano
...@@ -84,6 +85,9 @@ class TestCTC(unittest.TestCase): ...@@ -84,6 +85,9 @@ class TestCTC(unittest.TestCase):
""" """
def setUp(self): def setUp(self):
if theano.config.mode == "FAST_COMPILE" or theano.config.cxx == "":
raise SkipTest("We need a c compiler")
if not ctc_available(): if not ctc_available():
self.skipTest('Optional library warp-ctc not available') self.skipTest('Optional library warp-ctc not available')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论