提交 709f8622 authored 作者: Dustin Webb's avatar Dustin Webb

Removed unnecessary assert.

上级 e7d590df
...@@ -1632,9 +1632,7 @@ def local_alloc_elemwise(node): ...@@ -1632,9 +1632,7 @@ def local_alloc_elemwise(node):
else: else:
new_i.append(i) new_i.append(i)
new_i[assert_op_idx] = assert_op new_i[assert_op_idx] = assert_op
if (theano.config.experimental.local_alloc_elemwise_assert
and assert_op.owner is not None):
assert assert_op.owner.op is assert_
return node.op(*new_i, return_list=True) return node.op(*new_i, return_list=True)
#TODO, global optimizer that lift the assert to the beginning of the graph. #TODO, global optimizer that lift the assert to the beginning of the graph.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论