add ShareLoD for dropout_grad (#14616)

test=develop
local_add_cudnn_lstm
chengduo 7 years ago committed by GitHub
parent 3c77ce3751
commit 6648f5ed6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,6 +120,7 @@ class DropoutOpGrad : public framework::OperatorWithKernel {
"Dimensions of Input(X) and Mask must be the same.");
ctx->SetOutputDim(framework::GradVarName("X"), x_dims);
ctx->ShareLoD("X", /*->*/ framework::GradVarName("X"));
}
};

Loading…
Cancel
Save