From e880a356feaa92e213f8e3be3e8e0ba871d9721f Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Tue, 10 Oct 2017 13:51:08 +0800 Subject: [PATCH] update --- paddle/operators/sequence_concat_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/operators/sequence_concat_op.cc b/paddle/operators/sequence_concat_op.cc index eedf5315b4d..5dc0b24e6af 100644 --- a/paddle/operators/sequence_concat_op.cc +++ b/paddle/operators/sequence_concat_op.cc @@ -22,7 +22,7 @@ class SequenceConcatOp : public framework::OperatorWithKernel { using framework::OperatorWithKernel::OperatorWithKernel; protected: - void InferShape(framework::InferShapeContextBase* ctx) const override { + void InferShape(framework::InferShapeContext* ctx) const override { PADDLE_ENFORCE(ctx->HasInputs("X"), "Inputs(X) of SequenceConcatOp should not be null."); PADDLE_ENFORCE(ctx->HasOutput("Out"), @@ -100,7 +100,7 @@ class SequenceConcatGradOp : public framework::OperatorWithKernel { using framework::OperatorWithKernel::OperatorWithKernel; protected: - void InferShape(framework::InferShapeContextBase* ctx) const override { + void InferShape(framework::InferShapeContext* ctx) const override { PADDLE_ENFORCE(ctx->HasInput(framework::GradVarName("Out")), "The gradient of Out should not be null."); PADDLE_ENFORCE(ctx->HasOutputs(framework::GradVarName("X")), -- GitLab