From e10e26e70bc59f9c5f5c1615a03505cc3944fab3 Mon Sep 17 00:00:00 2001 From: Qi Li Date: Mon, 29 Aug 2022 20:53:41 +0800 Subject: [PATCH] [MLU] fix compile error, test=develop (#45499) * [MLU] fix compile error, test=develop * fix more compile error, test=develop --- paddle/fluid/operators/fill_constant_batch_size_like_op_mlu.cc | 1 + paddle/fluid/operators/fill_constant_op_mlu.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/paddle/fluid/operators/fill_constant_batch_size_like_op_mlu.cc b/paddle/fluid/operators/fill_constant_batch_size_like_op_mlu.cc index 93fd3c5f3d..ba426dfe62 100644 --- a/paddle/fluid/operators/fill_constant_batch_size_like_op_mlu.cc +++ b/paddle/fluid/operators/fill_constant_batch_size_like_op_mlu.cc @@ -15,6 +15,7 @@ limitations under the License. */ #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/operators/mlu/mlu_baseop.h" #include "paddle/fluid/operators/utils.h" +#include "paddle/phi/kernels/funcs/math_function.h" namespace paddle { namespace operators { diff --git a/paddle/fluid/operators/fill_constant_op_mlu.cc b/paddle/fluid/operators/fill_constant_op_mlu.cc index e2b4cd547d..487962a7de 100644 --- a/paddle/fluid/operators/fill_constant_op_mlu.cc +++ b/paddle/fluid/operators/fill_constant_op_mlu.cc @@ -14,6 +14,7 @@ limitations under the License. */ #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/operators/mlu/mlu_baseop.h" +#include "paddle/fluid/operators/utils.h" namespace paddle { namespace operators { -- GitLab