Browse Source

Fix compile warning.

tags/v1.1.0
unknown 3 years ago
parent
commit
1481c08bfc
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