Skip to content

Commit

Permalink
Fix error when defined LOG_VERBOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
zihaomu authored Feb 5, 2024
1 parent 784017d commit 466f381
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 466f381

Please sign in to comment.