提交 74457142 authored 作者: notoraptor's avatar notoraptor

Raise ImportError for old unsupported modules

and prevent flake8 error.
上级 77a1dbb4
from nose.plugins.skip import SkipTest # To prevent flake8 error.
from __future__ import print_function, absolute_import, division
raise SkipTest("You are importing theano.gpuarray.nerv. " raise ImportError(
"This module was removed as it was based on nervanagpu that is now deprecated. " "You are importing theano.gpuarray.nerv. "
"To still get this module, use Theano 0.9. " "This module was removed as it was based on nervanagpu that is now deprecated. "
"More info about nervanagpu here: https://github.com/NervanaSystems/nervanagpu " "To still get this module, use Theano 0.9. "
"(viewed on 2017/07/05).") "More info about nervanagpu here: https://github.com/NervanaSystems/nervanagpu "
"(viewed on 2017/07/05).")
from nose.plugins.skip import SkipTest raise ImportError(
raise SkipTest(
"You are importing theano.sandbox.cuda. This is the old GPU back-end and " "You are importing theano.sandbox.cuda. This is the old GPU back-end and "
"is removed from Theano. Use Theano 0.9 to use it. Even better, " "is removed from Theano. Use Theano 0.9 to use it. Even better, "
"transition to the new GPU back-end! See " "transition to the new GPU back-end! See "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论