提交 a92b183b authored 作者: Frederic's avatar Frederic

Fix a test when g++ is not available.

上级 1806b028
...@@ -126,7 +126,7 @@ class RecordMode(Mode): ...@@ -126,7 +126,7 @@ class RecordMode(Mode):
handle_line(line, i, node, fn) handle_line(line, i, node, fn)
#linker = theano.gof.OpWiseCLinker() #linker = theano.gof.OpWiseCLinker()
linker = theano.gof.vm.VM_Linker(use_cloop=True) linker = theano.gof.vm.VM_Linker(use_cloop=bool(theano.config.cxx))
wrap_linker = theano.gof.WrapLinkerMany([linker], [callback]) wrap_linker = theano.gof.WrapLinkerMany([linker], [callback])
super(RecordMode, self).__init__(wrap_linker, optimizer='fast_run') super(RecordMode, self).__init__(wrap_linker, optimizer='fast_run')
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论