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

adding the parameters list to the inputs

上级 337a6aa3
...@@ -479,6 +479,12 @@ def scan(fn, ...@@ -479,6 +479,12 @@ def scan(fn,
mintaps.extend(additional_mintaps) mintaps.extend(additional_mintaps)
inputs.extend(non_numeric_input_states) inputs.extend(non_numeric_input_states)
outputs.extend(non_numeric_output_states) outputs.extend(non_numeric_output_states)
all_other_inputs = gof.graph.inputs(outputs)
parameters = [x for x in all_other_inputs
if (x not in inputs and x not in lengths and x is not t
and isinstance(x, gof.Variable) and
not isinstance(x, gof.Constant))]
inputs.extend(parameters)
# 5.3 Construct the the options dictionary # 5.3 Construct the the options dictionary
options['name'] = name options['name'] = name
options['profile'] = profile options['profile'] = profile
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论