From c057d535d098cd972502155a7cc285dce5c05826 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 19 Dec 2017 17:35:08 +0800 Subject: [PATCH] remove duplicated code --- python/paddle/v2/fluid/tests/test_batch_norm_op.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/paddle/v2/fluid/tests/test_batch_norm_op.py b/python/paddle/v2/fluid/tests/test_batch_norm_op.py index 1185385cd21..dee2febb83d 100644 --- a/python/paddle/v2/fluid/tests/test_batch_norm_op.py +++ b/python/paddle/v2/fluid/tests/test_batch_norm_op.py @@ -6,10 +6,6 @@ from paddle.v2.fluid.op import Operator 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): backward_op = core.Operator.backward(op, no_grad_set) for input in backward_op.input_vars(): -- GitLab