Browse Source

fix

tags/v1.2.0
wjm 4 years ago
parent
commit
03becccde3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/multi_batch_clone_pass.cc

+ 1
- 1
ge/graph/passes/multi_batch_clone_pass.cc View File

@@ -191,7 +191,7 @@ Status MultiBatchClonePass::CheckAndParseDynamicData() {
data_desc.GetFormat() == Format::FORMAT_NHWC ? "NHWC" : "Others"; data_desc.GetFormat() == Format::FORMAT_NHWC ? "NHWC" : "Others";
auto data_name = node->GetName(); auto data_name = node->GetName();


std::vector<int64_t> data_shape_dims = data_shape.GetDims();
const auto &data_shape_dims = data_shape.GetDims();
if (std::all_of(data_shape_dims.begin(), data_shape_dims.end(), [](int64_t val) { return val >= 0; })) { if (std::all_of(data_shape_dims.begin(), data_shape_dims.end(), [](int64_t val) { return val >= 0; })) {
continue; continue;
} }


Loading…
Cancel
Save