From 55a3bfbd0c8b07f3eda70ae4206efc6389872622 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Mon, 7 Mar 2022 14:05:12 +0800 Subject: [PATCH] [Phi] Fix macro name typo (#40204) --- paddle/fluid/operators/optimizers/adadelta_op.cc | 4 ++-- paddle/fluid/operators/optimizers/adamax_op.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/operators/optimizers/adadelta_op.cc b/paddle/fluid/operators/optimizers/adadelta_op.cc index 3cafbce04d3..315831ddc0f 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 29f3d3b09de..036839dd130 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, -- GitLab