|
|
@@ -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()); |
|
|
|
|
|
|
|