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

Add the commit id and date to warning msg. Also fix stacklevel.

上级 f4779cbb
......@@ -760,11 +760,11 @@ def local_gpu_advanced_incsubtensor1(node):
warnings.warn(
'Although your current code is fine, please note that '
'Theano versions prior to 0.6 (more specifically, '
'prior to commit XXXX on DATE) may have '
'prior to commitd 2240bddd on March 29, 2012) may have '
'yielded an incorrect result. To remove this warning, '
'either set the `warn.gpu_set_subtensor1` config '
'option to False, or `warn.ignore_bug_before` to at '
'least \'0.6\'.')
'least \'0.6\'.', stacklevel=1)
if set_instead_of_inc:
return
......@@ -794,7 +794,7 @@ def local_gpu_advanced_incsubtensor1(node):
warnings.warn(
'Although your current code is fine, please note that '
'Theano versions prior to 0.6 (more specifically, '
'prior to commit XXXX on DATE) may have '
'prior to commit d2240bddd on March 29, 2012) may have '
'yielded an incorrect result. To remove this warning, '
'either set the `warn.gpu_set_subtensor1` config '
'option to False, or `warn.ignore_bug_before` to at '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论