提交 20ef16ea authored 作者: James Bergstra's avatar James Bergstra

Code comment in scan with question for Razvan

上级 4a2312bd
...@@ -233,6 +233,11 @@ class Scan(theano.Op): ...@@ -233,6 +233,11 @@ class Scan(theano.Op):
if k < 0 or k > n_outs: if k < 0 or k > n_outs:
raise ValueError('Taps dictionary contains wrong key!') raise ValueError('Taps dictionary contains wrong key!')
for vi in v: for vi in v:
# why is it illegal to specify vi < 2?
# what is special about vi == 1?
#
# Would it be simpler to just leave v alone if it is non-empty (checking that
# all vi are >=1) and set v = [1] for all missing output keys?
if vi < 2: if vi < 2:
raise ValueError('Taps dictionary contains wrong values!') raise ValueError('Taps dictionary contains wrong values!')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论