提交 3a6a88c3 authored 作者: Frederic Bastien's avatar Frederic Bastien

Add a comment

上级 0ebc6504
...@@ -256,6 +256,11 @@ def inplace_elemwise_optimizer_op(OP): ...@@ -256,6 +256,11 @@ def inplace_elemwise_optimizer_op(OP):
continue continue
if op.inplace_pattern: if op.inplace_pattern:
# Maybe this isn't needed anymore, but I don't want to
# rish regression now. This case only happen if the
# original node add already some inplace patter and we
# still try to add more pattern.
baseline = op.inplace_pattern baseline = op.inplace_pattern
candidate_outputs = [i for i in xrange(len(node.outputs)) candidate_outputs = [i for i in xrange(len(node.outputs))
if i not in baseline] if i not in baseline]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论