diff --git a/src/framework/operator.cpp b/src/framework/operator.cpp index dfdf0af79ac98d0bb79c7da3fdcc872341417b87..808002d4c8f3193744ef68c1db881a787d19b133 100644 --- a/src/framework/operator.cpp +++ b/src/framework/operator.cpp @@ -23,6 +23,7 @@ vector OperatorBase::GetOutKeys() const { auto it = op_input_output_key.find(type_); if (it == op_input_output_key.end()) { DLOG << type_ << " has no outputs"; + return {}; } return it->second.second; } diff --git a/test/executor_for_test.h b/test/executor_for_test.h index c69eba222fbe39d6627a0f03bf1621e7db4d491e..48b6b5cf3c6a3e01fc39bf381465d1ce12669f84 100644 --- a/test/executor_for_test.h +++ b/test/executor_for_test.h @@ -73,6 +73,7 @@ class Executor4Test : public Executor { } } } + this->InitMemory(); } template