提交 286b63f9 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

we can have extra inputs comming from the update rules

上级 2c6e3ab2
......@@ -443,7 +443,7 @@ def scan(fn,
# extract still missing inputs (there still might be so) and add them
# as non sequences at the end of our args
fake_nonseqs = [x.type() for x in non_seqs]
fake_outputs = scan_utils.clone(outputs,
fake_outputs = scan_utils.clone(outputs + updates.values(),
replace=dict(zip(non_seqs,
fake_nonseqs)))
all_inputs = itertools.ifilter(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论