提交 178b3384 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove useless lines.

上级 2fb76e8d
...@@ -1295,10 +1295,7 @@ def local_useless_subtensor(node): ...@@ -1295,10 +1295,7 @@ def local_useless_subtensor(node):
return False return False
elif isinstance(idx.stop, theano.scalar.Scalar): elif isinstance(idx.stop, theano.scalar.Scalar):
if length_pos_shape_i is None: # length_pos_shape_i cannot be None
return False
if length_pos is None:
return False
if length_pos_shape_i != length_pos: if length_pos_shape_i != length_pos:
return False return False
elif idx.stop is None: elif idx.stop is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论