提交 ecfe7453 authored 作者: Mohammad Pezeshki's avatar Mohammad Pezeshki

reverting back

上级 b00fcb83
...@@ -91,15 +91,13 @@ from theano.gradient import Rop, Lop, grad, subgraph_grad ...@@ -91,15 +91,13 @@ from theano.gradient import Rop, Lop, grad, subgraph_grad
# This need to be before the init of GPU, as it add config variable # This need to be before the init of GPU, as it add config variable
# needed during that phase. # needed during that phase.
import theano.tests
if hasattr(theano.tests, "TheanoNoseTester"):
def test(): test = theano.tests.TheanoNoseTester().test
import theano.tests else:
if hasattr(theano.tests, "TheanoNoseTester"): def test():
test = theano.tests.TheanoNoseTester().test raise ImportError("The nose module is not installed."
return test() " It is needed for Theano tests.")
else:
raise ImportError("The nose module is not installed.")
if config.device.startswith('gpu') or config.init_gpu_device.startswith('gpu'): if config.device.startswith('gpu') or config.init_gpu_device.startswith('gpu'):
import theano.sandbox.cuda import theano.sandbox.cuda
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论