提交 62034fb2 编写于 作者: M Megvii Engine Team

fix(imperative): make CompNode finalize happens before global object destructor

GitOrigin-RevId: 9a1f507c693080105867486ed4574cbb3921f4fc
上级 59cbf958
......@@ -242,6 +242,8 @@ void Tensor::static_initialize() {
AsyncReleaser::inst();
CompNodeSyncManager::inst();
MultiCNConstTensorCache::inst();
// clean all CompNodeDepedentObjects
mgb_assert(!atexit(CompNode::finalize), "atexit register failed");
}
} // namespace imperative
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册