提交 d9e51499 authored 作者: Frédéric Bastien's avatar Frédéric Bastien 提交者: GitHub

Merge pull request #5419 from abergeron/deprecate

Add a deprecation message to the old backend.
...@@ -488,6 +488,10 @@ def use(device, ...@@ -488,6 +488,10 @@ def use(device,
""" """
global cuda_enabled, cuda_initialization_error_message global cuda_enabled, cuda_initialization_error_message
_logger.warn("The cuda backend is deprecated and will be removed in "
"the next release. Please switch to the gpuarray backend. "
"You can get more information about how to switch at this "
"URL:\n https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29\n")
if force and not cuda_available and device.startswith('gpu'): if force and not cuda_available and device.startswith('gpu'):
if not nvcc_compiler.is_nvcc_available(): if not nvcc_compiler.is_nvcc_available():
raise EnvironmentError("You forced the use of gpu device '%s', but" raise EnvironmentError("You forced the use of gpu device '%s', but"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论