Browse Source

Fix ut.

tags/v1.3.0
zhaozhixuan 4 years ago
parent
commit
492d36b237
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/ut/ge/single_op/single_op_model_unittest.cc

+ 1
- 1
tests/ut/ge/single_op/single_op_model_unittest.cc View File

@@ -223,7 +223,7 @@ TEST_F(UtestSingleOpModel, test_build_dynamic_op) {
model.model_helper_.model_->SetGraph(graph); model.model_helper_.model_->SetGraph(graph);


auto op_desc = transdata->GetOpDesc(); auto op_desc = transdata->GetOpDesc();
op_desc->input_name_idx_["Data"] = 0;
op_desc->impl_->input_name_idx_["Data"] = 0;
const vector<string> depend_names = { "Data" }; const vector<string> depend_names = { "Data" };
op_desc->SetOpInferDepends(depend_names); op_desc->SetOpInferDepends(depend_names);
(void)AttrUtils::SetBool(op_desc, kAttrSupportDynamicShape, true); (void)AttrUtils::SetBool(op_desc, kAttrSupportDynamicShape, true);


Loading…
Cancel
Save