Browse Source

Add ut.

tags/v1.3.0
zhaozhixuan 3 years ago
parent
commit
871efe285e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/generator/ge_generator.cc

+ 1
- 1
ge/generator/ge_generator.cc View File

@@ -711,7 +711,7 @@ bool GeGenerator::CheckNoAicore(const ComputeGraphPtr &graph) {
}

void GeGenerator::RemoveConst(const vector<GeTensor> &inputs, vector<GeTensor> &outputs) {
for (auto input : inputs) {
for (auto &input : inputs) {
GeTensorDesc input_desc = input.GetTensorDesc();
bool is_const = false;
(void)AttrUtils::GetBool(input_desc, CONST_ATTR_NAME_INPUT, is_const);


Loading…
Cancel
Save