Fix InferShapeContext in decayed_adagrad_op

revert-4814-Add_sequence_project_op
guosheng 8 years ago
parent 487a13bbfa
commit d0d3129f91

@ -22,7 +22,7 @@ class DecayedAdagradOp : 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("Param"),
"Input(Param) of DecayedAdagradOp should not be null.");
PADDLE_ENFORCE(ctx->HasInput("Grad"),

Loading…
Cancel
Save