提交 c057d535 编写于 作者: Q qiaolongfei

remove duplicated code

上级 b2023db3
...@@ -6,10 +6,6 @@ from paddle.v2.fluid.op import Operator ...@@ -6,10 +6,6 @@ from paddle.v2.fluid.op import Operator
from paddle.v2.fluid.framework import grad_var_name from paddle.v2.fluid.framework import grad_var_name
def grad_var_name(var_name):
return var_name + "@GRAD"
def get_backward_op(scope, op, no_grad_set): def get_backward_op(scope, op, no_grad_set):
backward_op = core.Operator.backward(op, no_grad_set) backward_op = core.Operator.backward(op, no_grad_set)
for input in backward_op.input_vars(): for input in backward_op.input_vars():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册