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

Shorting the code

I do not really use ``states_and_outputs_info`` list anywhere after that point. I will use mintaps however. Normally I would have to feel both lists with the defaul, but since I'm not using the first one anymore, I'll just fill the second one
上级 932cc538
......@@ -398,7 +398,7 @@ def scan(fn,
# map
if (len(states_and_outputs) != len(states_and_outputs_info) and
len(states_and_outputs_info) == 0):
states_and_outputs_info = [None] * len(states_and_outputs)
mintaps = [0] * len(states_and_outputs)
# 5. Construct the scan op
# 5.1 Construct list of shared variables with updates (those that
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论