Browse Source

!386 Fix compile warning

From: @zhangxiaokun9
Reviewed-by: @xchu42,@wqtshg
Signed-off-by: @wqtshg
tags/v1.1.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
21197c2c7e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/graph/passes/data_pass.cc

+ 2
- 2
ge/graph/passes/data_pass.cc View File

@@ -53,9 +53,9 @@ Status MappingSubgraphOutput(const ComputeGraphPtr &graph, const std::function<i

const auto &op_desc = output_node->GetOpDesc();
GE_CHECK_NOTNULL(op_desc);
for (auto index = 0; index < op_desc->GetInputsSize(); ++index) {
for (size_t index = 0; index < op_desc->GetInputsSize(); ++index) {
int parent_index = output(index);
GELOGI("Generate subgraph output map for subgraph %s, index %d, parent index %d",
GELOGI("Generate subgraph output map for subgraph %s, index %zu, parent index %d",
graph->GetName().c_str(), index, parent_index);
if (parent_index == -1) {
continue;


Loading…
Cancel
Save