提交 14317c94 authored 作者: Frederic's avatar Frederic

Better message.

上级 dda26ff0
......@@ -427,7 +427,11 @@ AddConfigVar('warn.reduce_join',
'prior to 0.7 (or this development version) '
'might have given an incorrect result. '
'To disable this warning, set the Theano flag '
'warn.reduce_join to False.'),
'warn.reduce_join to False. The problem was an '
'optimization that modify the pattern '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'did not checked the reduction axis. So if the '
'reduction axis is not 0, you got wrong answer.'),
BoolParam(warn_default('0.7')),
in_c_key=False)
......
......@@ -3518,9 +3518,14 @@ def local_reduce_join(node):
_logger.warn((
'Your current code is fine, but Theano versions '
'prior to 0.7 (or this development version Sept 2014) '
'might have given an incorrect result. '
'might have given an incorrect result for this code. '
'To disable this warning, set the Theano flag '
'warn.reduce_join to False.'))
'warn.reduce_join to False. The problem was an '
'optimization that modify the pattern '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'did not checked the reduction axis. So if the '
'reduction axis is not 0, you got wrong answer.'
))
return
# We add the new check late to don't add extra warning.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论