Browse Source

return when task sink failed.

tags/v1.2.0
zhangxiaokun 3 years ago
parent
commit
10f986a1ee
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      ge/common/helper/model_helper.cc

+ 5
- 5
ge/common/helper/model_helper.cc View File

@@ -616,11 +616,11 @@ Status ModelHelper::LoadModelData(OmFileLoadHelper &om_load_helper) {
} }


void ModelHelper::SetModelToGeModel(GeModelPtr &ge_model, Model &model) { void ModelHelper::SetModelToGeModel(GeModelPtr &ge_model, Model &model) {
model_->SetGraph(model.GetGraph());
model_->SetName(model.GetName());
model_->SetVersion(model.GetVersion());
model_->SetPlatformVersion(model.GetPlatformVersion());
model_->SetAttr(model.MutableAttrMap());
ge_model->SetGraph(model.GetGraph());
ge_model->SetName(model.GetName());
ge_model->SetVersion(model.GetVersion());
ge_model->SetPlatformVersion(model.GetPlatformVersion());
ge_model->SetAttr(model.MutableAttrMap());
} }


Status ModelHelper::LoadModelData(OmFileLoadHelper &om_load_helper, GeModelPtr &cur_model, size_t mode_index) { Status ModelHelper::LoadModelData(OmFileLoadHelper &om_load_helper, GeModelPtr &cur_model, size_t mode_index) {


Loading…
Cancel
Save