提交 355e35fe 编写于 作者: W wanghaoshuang

fix paddle enforce check

上级 a03c6849
......@@ -95,7 +95,6 @@ class PadOpGrad : public framework::OperatorWithKernel {
"Input(Out@GRAD) should not be null");
auto x_dims = ctx.Input<Tensor>("X")->dims();
auto *x_grad = ctx.Output<Tensor>(framework::GradVarName("X"));
PADDLE_ENFORCE_NOT_NULL(x_grad, "Output(X@GRAD) should not be null");
x_grad->Resize(x_dims);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册