Skip to content

Commit eda0690

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into enhance_hierachical_sigmod_op
2 parents a08dc83 + 6648f5e commit eda0690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/operators/dropout_op.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class DropoutOpGrad : public framework::OperatorWithKernel {
120120
"Dimensions of Input(X) and Mask must be the same.");
121121

122122
ctx->SetOutputDim(framework::GradVarName("X"), x_dims);
123+
ctx->ShareLoD("X", /*->*/ framework::GradVarName("X"));
123124
}
124125
};
125126

0 commit comments

Comments
 (0)