diff --git a/metadef b/metadef index f5c1b6d..599fbd9 160000 --- a/metadef +++ b/metadef @@ -1 +1 @@ -Subproject commit f5c1b6d1b6b6e97d0cfcf2efd52ec8da12d32c86 +Subproject commit 599fbd9d7f9509b7673af90e186817b5a75ad547 diff --git a/tests/depends/graph/src/attr_util_stub.cc b/tests/depends/graph/src/attr_util_stub.cc index a16c11b..7d822d0 100644 --- a/tests/depends/graph/src/attr_util_stub.cc +++ b/tests/depends/graph/src/attr_util_stub.cc @@ -135,10 +135,8 @@ GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY OpDescPtr AttrUtils::CloneOpDesc( if (!op_desc->impl_->output_name_idx_.empty()) { op_desc->impl_->output_name_idx_.clear(); } - if (!op_desc->impl_->optional_input_names_.empty()) { - op_desc->impl_->optional_input_names_.clear(); - } + op_desc->impl_->MutableIRMeta() = IRMetaData(op_desc->GetName()); return op_desc; } @@ -173,8 +171,7 @@ GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY OpDescPtr AttrUtils::CopyOpDesc(c } op_desc->impl_->input_name_idx_.insert(org_op_desc->impl_->input_name_idx_.begin(), org_op_desc->impl_->input_name_idx_.end()); - op_desc->impl_->optional_input_names_.insert(org_op_desc->impl_->optional_input_names_.begin(), - org_op_desc->impl_->optional_input_names_.end()); + op_desc->impl_->MutableIRMeta() = org_op_desc->impl_->GetIRMeta(); op_desc->impl_->output_name_idx_.insert(org_op_desc->impl_->output_name_idx_.begin(), org_op_desc->impl_->output_name_idx_.end()); diff --git a/tests/st/CMakeLists.txt b/tests/st/CMakeLists.txt index 580669b..1acc4ed 100644 --- a/tests/st/CMakeLists.txt +++ b/tests/st/CMakeLists.txt @@ -103,6 +103,8 @@ set(MATEDEF_SRC_FILES "${PARSER_DIR}/metadef/graph/model_serialize.cc" "${PARSER_DIR}/metadef/graph/node.cc" "${PARSER_DIR}/metadef/graph/op_desc.cc" + "${PARSER_DIR}/metadef/graph/ir_meta.cc" + "${PARSER_DIR}/metadef/graph/ir_data_type_symbol_store.cc" "${PARSER_DIR}/metadef/graph/operator.cc" "${PARSER_DIR}/metadef/graph/operator_impl.cc" "${PARSER_DIR}/metadef/graph/operator_factory.cc" diff --git a/tests/ut/parser/CMakeLists.txt b/tests/ut/parser/CMakeLists.txt index 28453d9..8b44a0a 100644 --- a/tests/ut/parser/CMakeLists.txt +++ b/tests/ut/parser/CMakeLists.txt @@ -106,6 +106,8 @@ set(MATEDEF_SRC_FILES "${PARSER_DIR}/metadef/graph/model_serialize.cc" "${PARSER_DIR}/metadef/graph/node.cc" "${PARSER_DIR}/metadef/graph/op_desc.cc" + "${PARSER_DIR}/metadef/graph/ir_meta.cc" + "${PARSER_DIR}/metadef/graph/ir_data_type_symbol_store.cc" "${PARSER_DIR}/metadef/graph/operator.cc" "${PARSER_DIR}/metadef/graph/operator_impl.cc" "${PARSER_DIR}/metadef/graph/operator_factory.cc"