Skip to content

Commit

Permalink
Merge pull request #2752 from zihaomu/patch-2
Browse files Browse the repository at this point in the history
Fix error when defined LOG_VERBOSE
  • Loading branch information
jxt1234 committed Feb 20, 2024
2 parents 0c6073d + 466f381 commit 8686994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/core/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>());
inputTensor->printShape();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8686994

Please sign in to comment.