提交 a0d75b41 authored 作者: carriepl's avatar carriepl

Update comment

上级 08c43971
......@@ -337,7 +337,15 @@ def inplace_elemwise_optimizer_op(OP):
# The candidate output is an update. Sort the
# variables in candidate_inputs in the following order:
# - Vars corresponding to the actual updated input
# - Vars computed inplace on the updates input
# (best case scenario is for the node that procudes
# an update to operate inplace on the variable to
# update)
# - Vars computed inplace on the updates input (second
# best scenario if for the node to work inplace on
# a variable obtained by a chain of inplace on the
# variable to update. In some cases, this will be
# equivalent to operating inplace on the variable to
# update)
# - Remaining variables
fgraph_out_idx = fgraph.outputs.index(candidate_out_var)
updated_inp_idx = fgraph.update_mapping[fgraph_out_idx]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论