diff --git a/mindspore/ccsrc/transform/express_ir/CMakeLists.txt b/mindspore/ccsrc/transform/express_ir/CMakeLists.txt index b871857b4b..05afdd0f60 100644 --- a/mindspore/ccsrc/transform/express_ir/CMakeLists.txt +++ b/mindspore/ccsrc/transform/express_ir/CMakeLists.txt @@ -1,3 +1,3 @@ file(GLOB_RECURSE _EXPORTER_IR_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc") -set_property(SOURCE ${_ONNX_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_ONNX) +set_property(SOURCE ${_EXPORTER_IR_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_EXPRESS) add_library(_mindspore_transform_express_ir_obj OBJECT ${_EXPORTER_IR_SRC_FILES}) \ No newline at end of file diff --git a/mindspore/core/utils/log_adapter.cc b/mindspore/core/utils/log_adapter.cc index d2504a3c7d..315a8f6726 100644 --- a/mindspore/core/utils/log_adapter.cc +++ b/mindspore/core/utils/log_adapter.cc @@ -169,7 +169,7 @@ static const char *GetSubModuleName(SubModuleId module_id) { "KERNEL", // SM_KERNEL "MD", // SM_MD "ME", // SM_ME - "ONNX", // SM_ONNX + "EXPRESS", // SM_EXPRESS "OPTIMIZER", // SM_OPTIMIZER "PARALLEL", // SM_PARALLEL "PARSER", // SM_PARSER diff --git a/mindspore/core/utils/log_adapter.h b/mindspore/core/utils/log_adapter.h index 266b467854..84849843bf 100644 --- a/mindspore/core/utils/log_adapter.h +++ b/mindspore/core/utils/log_adapter.h @@ -112,7 +112,7 @@ enum SubModuleId : int { SM_KERNEL, // kernel SM_MD, // MindData SM_ME, // MindExpression - SM_ONNX, // ONNX + SM_EXPRESS, // EXPRESS_IR SM_OPTIMIZER, // optimzer SM_PARALLEL, // parallel SM_PARSER, // parser