From 1481c08bfc09bec352e2c5f5d9379a36db8e145d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 23 Nov 2020 17:35:10 +0800 Subject: [PATCH] Fix compile warning. --- ge/graph/passes/data_pass.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/graph/passes/data_pass.cc b/ge/graph/passes/data_pass.cc index 8f9df2f0..4ec8743e 100644 --- a/ge/graph/passes/data_pass.cc +++ b/ge/graph/passes/data_pass.cc @@ -53,9 +53,9 @@ Status MappingSubgraphOutput(const ComputeGraphPtr &graph, const std::functionGetOpDesc(); 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;