提交 6dfd132d authored 作者: Kyunghyun Cho's avatar Kyunghyun Cho

handles non_sequences==None properly

上级 20cc80db
...@@ -918,7 +918,7 @@ def scan(fn, ...@@ -918,7 +918,7 @@ def scan(fn,
givens.update(OrderedDict(zip(other_scan_args, other_inner_args))) givens.update(OrderedDict(zip(other_scan_args, other_inner_args)))
if strict: if strict:
non_seqs_set = set(non_sequences) non_seqs_set = set(non_sequences if non_sequences != None else [])
other_shared_scan_args = [arg.variable for arg other_shared_scan_args = [arg.variable for arg
in dummy_f.maker.expanded_inputs in dummy_f.maker.expanded_inputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论