From 466f3819ee52f5fa5fdf2e05f332f57d6a24a36a Mon Sep 17 00:00:00 2001 From: zihaomu Date: Mon, 5 Feb 2024 15:09:01 +0800 Subject: [PATCH] Fix error when defined LOG_VERBOSE --- source/core/Session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/Session.cpp b/source/core/Session.cpp index 328ee8d33..5b1e8ac2e 100644 --- a/source/core/Session.cpp +++ b/source/core/Session.cpp @@ -166,7 +166,7 @@ void Session::_clearCache() { ErrorCode Session::resize() { #ifdef LOG_VERBOSE - for (auto& iter : mInputs) { + for (auto& iter : mInfo.inputTensors) { auto& inputTensor = iter.second; MNN_PRINT("before resize, input name:%s, ptr:%p, hostPtr:%p, shape:", iter.first.c_str(), inputTensor, inputTensor->host()); inputTensor->printShape(); @@ -223,7 +223,7 @@ ErrorCode Session::resize() { #ifdef LOG_VERBOSE MNN_PRINT("session after resize\n"); - for (auto& iter : mOutputs) { + for (auto& iter : mInfo.outputTensor) { auto& outputTensor = iter.second; MNN_PRINT("output name:%s, ptr:%p,shape:", iter.first.c_str(), outputTensor); outputTensor->printShape();