Browse Source

ut_

pull/498/head
刘康 4 years ago
parent
commit
8708065cfe
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      metadef
  2. +2
    -2
      tests/depends/graph/src/attr_util_stub.cc

+ 1
- 1
metadef

@@ -1 +1 @@
Subproject commit bf2dfcda7a2eb137f4d02cf899f7747ba8550455
Subproject commit abc630633f23630d0df5cf1d77fc7f5c3b5ae5e3

+ 2
- 2
tests/depends/graph/src/attr_util_stub.cc View File

@@ -121,7 +121,7 @@ GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY OpDescPtr AttrUtils::CloneOpDesc(
GE_CHK_BOOL_EXEC(imp.UnserializeOpDesc(op_desc, *op_def),
REPORT_CALL_ERROR("E19999", "UnserializeOpDesc failed");
return op_desc, "[Call][UnserializeOpDesc] op_desc unserialize failed");
op_desc->extAttrs_ = org_op_desc->extAttrs_;
op_desc->ext_attrs_ = org_op_desc->ext_attrs_;

// This function may be called by some passes of fusion engine, in this condition, do not need these attribute
if (op_desc->impl_ == nullptr) {
@@ -164,7 +164,7 @@ GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY OpDescPtr AttrUtils::CopyOpDesc(c
return nullptr;
}

op_desc->extAttrs_ = org_op_desc->extAttrs_;
op_desc->ext_attrs_ = org_op_desc->ext_attrs_;

if (op_desc->impl_ == nullptr) {
REPORT_INNER_ERROR("E19999", "op desc impl is nullptr, check invalid");


Loading…
Cancel
Save