From 9774c8ff039fec5b6abed3b7b27ffb45f7f7c99f Mon Sep 17 00:00:00 2001 From: hjchen2 Date: Sat, 29 Dec 2018 18:36:54 +0800 Subject: [PATCH] Fix crash when DEBUG is enabled --- src/framework/operator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/framework/operator.cpp b/src/framework/operator.cpp index 2b9e1d0451..611b134eaa 100644 --- a/src/framework/operator.cpp +++ b/src/framework/operator.cpp @@ -64,8 +64,7 @@ void OperatorBase::Run() { for (const auto key : input_keys) { auto var_vec_in = inputs_.at(key); for (int i = 0; i < var_vec_in.size(); ++i) { - DLOG << var_vec_in[i]; - auto vari = this->scope_->FindVar("input"); + auto vari = this->scope_->FindVar(var_vec_in[i]); if (vari->IsInitialized()) { const Tensor *tensor = vari->template Get(); if (tensor) DLOG << type_ << " input- " << key << "=" << *tensor; -- GitLab