diff --git a/paddle/fluid/operators/optimizers/adadelta_op.cc b/paddle/fluid/operators/optimizers/adadelta_op.cc index 3cafbce04d3333a29f978f94e286686405e50e7e..315831ddc0f290cc8c7ad1b78ce8625722f91d3b 100644 --- a/paddle/fluid/operators/optimizers/adadelta_op.cc +++ b/paddle/fluid/operators/optimizers/adadelta_op.cc @@ -82,8 +82,8 @@ $$ namespace ops = paddle::operators; namespace ops = paddle::operators; -DELCARE_INFER_SHAPE_FUNCTOR(adadelta, AdadeltaInferMetaFunctor, - PT_INFER_META(phi::AdadeltaInferMeta)); +DECLARE_INFER_SHAPE_FUNCTOR(adadelta, AdadeltaInferMetaFunctor, + PD_INFER_META(phi::AdadeltaInferMeta)); REGISTER_OPERATOR( adadelta, ops::AdadeltaOp, ops::AdadeltaOpMaker, paddle::framework::EmptyGradOpMaker, diff --git a/paddle/fluid/operators/optimizers/adamax_op.cc b/paddle/fluid/operators/optimizers/adamax_op.cc index 29f3d3b09decc3911543cb8a13df35fc1f7174ae..036839dd1300feac544a6f1ca661598f4360f745 100644 --- a/paddle/fluid/operators/optimizers/adamax_op.cc +++ b/paddle/fluid/operators/optimizers/adamax_op.cc @@ -92,8 +92,8 @@ division by 0 error. } // namespace paddle namespace ops = paddle::operators; -DELCARE_INFER_SHAPE_FUNCTOR(adamax, AdamaxInferMetaFunctor, - PT_INFER_META(phi::AdamaxInferMeta)); +DECLARE_INFER_SHAPE_FUNCTOR(adamax, AdamaxInferMetaFunctor, + PD_INFER_META(phi::AdamaxInferMeta)); REGISTER_OPERATOR( adamax, ops::AdamaxOp, ops::AdamaxOpMaker,