提交 7b23b23b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Rename grad2 to L_op.

上级 5b10cc54
...@@ -696,7 +696,7 @@ class PureOp(object): ...@@ -696,7 +696,7 @@ class PureOp(object):
# Python implementation # # Python implementation #
######################### #########################
def grad2(self, inputs, outputs, output_grads): def L_op(self, inputs, outputs, output_grads):
return self.grad(inputs, output_grads) return self.grad(inputs, output_grads)
def R_op(self, inputs, eval_points): def R_op(self, inputs, eval_points):
......
...@@ -1102,7 +1102,7 @@ def _populate_grad_dict(var_to_app_to_idx, ...@@ -1102,7 +1102,7 @@ def _populate_grad_dict(var_to_app_to_idx,
str(o_shape) + " on an output of shape " + str(o_shape) + " on an output of shape " +
str(g_shape)) str(g_shape))
input_grads = node.op.grad2(inputs, node.outputs, input_grads = node.op.L_op(inputs, node.outputs,
new_output_grads) new_output_grads)
if input_grads is None: if input_grads is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论