提交 5f3f414f 编写于 作者: W wangliu

Init tensor memory in executor_for_test

上级 4128d71e
......@@ -23,6 +23,7 @@ vector<string> OperatorBase<Dtype>::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;
}
......
......@@ -73,6 +73,7 @@ class Executor4Test : public Executor<DeviceType> {
}
}
}
this->InitMemory();
}
template <typename T = LoDTensor>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册