Browse Source

ir build optimize

tags/v1.2.0
wxl 4 years ago
parent
commit
ed7d157e81
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/ir_build/ge_ir_build.cc

+ 1
- 1
ge/ir_build/ge_ir_build.cc View File

@@ -463,7 +463,7 @@ graphStatus Impl::CreateInputsForIRBuild(const ge::Graph &graph, vector<ge::GeTe
inputs.emplace_back(inputTensor);
}
}
std::sort(inputs.begin(), inputs.end(), [](ge::GeTensor &a, ge::GeTensor &b) {
std::sort(inputs.begin(), inputs.end(), [](ge::GeTensor a, ge::GeTensor b) {
int64_t data_idx_a = 0;
int64_t data_idx_b = 0;
AttrUtils::GetInt(a.MutableTensorDesc(), ATTR_NAME_INDEX, data_idx_a);


Loading…
Cancel
Save