From fa6ea1e0e6366f06a27bb236e843c50ffe3869a0 Mon Sep 17 00:00:00 2001 From: heqiaozhi Date: Wed, 10 Apr 2019 15:06:20 +0800 Subject: [PATCH] remove grad X test=develop --- paddle/fluid/operators/cvm_op.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/fluid/operators/cvm_op.cc b/paddle/fluid/operators/cvm_op.cc index 972fdaab64..662fb3b08e 100644 --- a/paddle/fluid/operators/cvm_op.cc +++ b/paddle/fluid/operators/cvm_op.cc @@ -131,11 +131,9 @@ class CVMGradOpDescMaker : public framework::SingleGradOpDescMaker { std::unique_ptr Apply() const override { std::unique_ptr op(new framework::OpDesc()); op->SetType("cvm_grad"); - op->SetInput("X", Input("X")); op->SetInput("CVM", Input("CVM")); op->SetInput(framework::GradVarName("Y"), OutputGrad("Y")); op->SetOutput(framework::GradVarName("X"), InputGrad("X")); - op->SetOutput(framework::GradVarName("CVM"), InputGrad("CVM")); op->SetAttrMap(Attrs()); return op; } -- GitLab