diff --git a/mindspore/core/ir/func_graph_cloner.cc b/mindspore/core/ir/func_graph_cloner.cc index fa4c903270..02a42559db 100644 --- a/mindspore/core/ir/func_graph_cloner.cc +++ b/mindspore/core/ir/func_graph_cloner.cc @@ -23,6 +23,7 @@ #include "base/core_ops.h" #include "utils/convert_utils_base.h" #include "utils/log_adapter.h" +#include "utils/profile.h" #include "utils/context/ms_context.h" #include "ir/graph_utils.h" diff --git a/mindspore/ccsrc/utils/profile.cc b/mindspore/core/utils/profile.cc similarity index 99% rename from mindspore/ccsrc/utils/profile.cc rename to mindspore/core/utils/profile.cc index 9fb9dc9f1a..781302e503 100644 --- a/mindspore/ccsrc/utils/profile.cc +++ b/mindspore/core/utils/profile.cc @@ -28,7 +28,6 @@ #include "utils/log_adapter.h" namespace mindspore { - namespace { constexpr size_t TIME_INFO_PREFIX_NUM_LEN = 4; const char KEY_PROF_TOTAL[] = "__total__"; diff --git a/mindspore/ccsrc/utils/profile.h b/mindspore/core/utils/profile.h similarity index 99% rename from mindspore/ccsrc/utils/profile.h rename to mindspore/core/utils/profile.h index bd3723d5bb..2e236b7f5e 100644 --- a/mindspore/ccsrc/utils/profile.h +++ b/mindspore/core/utils/profile.h @@ -25,7 +25,6 @@ #include "utils/log_adapter.h" namespace mindspore { - struct TimeInfo; using TimeInfoMap = std::map;