From 4ff87c049da04aea49580322c03bfc754721afd6 Mon Sep 17 00:00:00 2001 From: hutuxian Date: Wed, 29 May 2019 17:12:39 +0800 Subject: [PATCH] remove useless input 'Softmax@GRAD' from softmax_with_cross_entropy op (#17612) --- paddle/fluid/operators/softmax_with_cross_entropy_op.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/paddle/fluid/operators/softmax_with_cross_entropy_op.cc b/paddle/fluid/operators/softmax_with_cross_entropy_op.cc index 456f78d20..716826bf1 100644 --- a/paddle/fluid/operators/softmax_with_cross_entropy_op.cc +++ b/paddle/fluid/operators/softmax_with_cross_entropy_op.cc @@ -248,7 +248,6 @@ class SoftmaxGradMaker : public framework::SingleGradOpDescMaker { grad_op->SetType("softmax_with_cross_entropy_grad"); grad_op->SetInput("Label", Input("Label")); grad_op->SetInput("Softmax", Output("Softmax")); - grad_op->SetInput(framework::GradVarName("Softmax"), OutputGrad("Softmax")); grad_op->SetInput(framework::GradVarName("Loss"), OutputGrad("Loss")); grad_op->SetOutput(framework::GradVarName("Logits"), InputGrad("Logits")); grad_op->SetAttrMap(Attrs()); -- GitLab