提交 aaf14063 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

yet another n_steps =1 bug fixed

上级 0198fa75
...@@ -639,7 +639,10 @@ def scan(fn, sequences=[], outputs_info=[], non_sequences=[], ...@@ -639,7 +639,10 @@ def scan(fn, sequences=[], outputs_info=[], non_sequences=[],
notshared_other_args_copies = [] notshared_other_args_copies = []
for non_seq in non_seqs: for non_seq in non_seqs:
if not isinstance(non_seq, SharedVariable): if not isinstance(non_seq, SharedVariable):
if n_fixed_steps not in [-1,1]:
non_seq_copy = non_seq.type() non_seq_copy = non_seq.type()
else:
non_seq_copy = non_seq
notshared_other_args += [non_seq] notshared_other_args += [non_seq]
notshared_other_args_copies += [non_seq_copy] notshared_other_args_copies += [non_seq_copy]
new_non_seqs += [non_seq_copy] new_non_seqs += [non_seq_copy]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论