提交 592ea4d7 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add an url where you can get info on how to switch.

上级 6b209431
...@@ -489,7 +489,9 @@ def use(device, ...@@ -489,7 +489,9 @@ 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 " _logger.warn("The cuda backend is deprecated and will be removed in "
"the next release. Please switch to the gpuarray backend.") "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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论