提交 bb3460fe authored 作者: Frederic Bastien's avatar Frederic Bastien

removed a case that can't happen.

上级 6480e7f0
...@@ -1125,8 +1125,6 @@ def local_useless_subtensor(node): ...@@ -1125,8 +1125,6 @@ def local_useless_subtensor(node):
node_input_idx += sum([isinstance(idx.start, theano.scalar.Scalar), node_input_idx += sum([isinstance(idx.start, theano.scalar.Scalar),
isinstance(idx.stop, theano.scalar.Scalar), isinstance(idx.stop, theano.scalar.Scalar),
isinstance(idx.step, theano.scalar.Scalar)]) isinstance(idx.step, theano.scalar.Scalar)])
if isinstance(idx, theano.scalar.Scalar):
node_input_idx += 1
return [node.inputs[0]] return [node.inputs[0]]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论