提交 739cd906 authored 作者: lamblin's avatar lamblin

Merge pull request #1158 from goodfeli/fix_stacklevel

fix stacklevel of updates dictionary warning
...@@ -174,7 +174,8 @@ def function(inputs, outputs=None, mode=None, updates=None, givens=None, ...@@ -174,7 +174,8 @@ def function(inputs, outputs=None, mode=None, updates=None, givens=None,
"non-deterministic behavior. You should use an OrderedDict" "non-deterministic behavior. You should use an OrderedDict"
" if you are using Python 2.7, or use a list of (shared, update)" " if you are using Python 2.7, or use a list of (shared, update)"
" pairs. Do not just convert your dictionary to this type before" " pairs. Do not just convert your dictionary to this type before"
" the call as the conversion will still be non-deterministic.") " the call as the conversion will still be non-deterministic.",
stacklevel=2)
if givens is None: if givens is None:
givens = [] givens = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论