提交 0a652bb8 authored 作者: Reyhane Askari's avatar Reyhane Askari

updated docstring

上级 9ad8e925
......@@ -265,7 +265,7 @@ class InplaceElemwiseOptimizer(Optimizer):
candidate_inputs = [i for i in xrange(len(node.inputs))
if i not in baseline.values() and
not isinstance(node.inputs[i], Constant) and
# Is next line costly? (used to be fgraph.get_destroyers)
# the next line should not be costly most of the time.
not fgraph.has_destroyers([node.inputs[i]]) and
node.inputs[i] not in protected_inputs]
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论