Fixed Invalid read of size 8 reported by Valgrind

This commit is contained in:
Huanyu.Cai 2023-01-09 21:58:21 +08:00 committed by Sven
parent 58d36ab943
commit 9ab00a57a6
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ LayoutInference(
}
while (!tensor_queue.empty()) {
const auto& tensor = tensor_queue.front();
auto tensor = tensor_queue.front();
tensor_queue.pop_front();
const auto& consumers = src_graph->GetConsumersOp(tensor);
for (const auto& op : consumers) {