提交 b7e68d22 authored 作者: Mikhail Korobov's avatar Mikhail Korobov

scan: remove unconditional warning when strict=True is used. Fixes GH-3333.

上级 42dd8a8f
...@@ -1014,9 +1014,6 @@ def scan(fn, ...@@ -1014,9 +1014,6 @@ def scan(fn,
info['profile'] = profile info['profile'] = profile
info['allow_gc'] = allow_gc info['allow_gc'] = allow_gc
info['strict'] = strict info['strict'] = strict
if strict:
warnings.warn('In the strict mode, all neccessary shared variables '
'must be passed as a part of non_sequences', Warning)
local_op = scan_op.Scan(inner_inputs, new_outs, info) local_op = scan_op.Scan(inner_inputs, new_outs, info)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论