未验证 提交 d5366c47 编写于 作者: J JingZhuangzhuang 提交者: GitHub

reset context clear profile_num (#49188)

上级 cdb6b746
......@@ -326,6 +326,7 @@ class TensorRTEngine {
std::unique_lock<std::mutex> lock(mutex_);
infer_context_[predictor_id_per_thread].reset(nullptr);
infer_context_.erase(predictor_id_per_thread);
cur_profile_num_ = 0;
}
nvinfer1::IHostMemory* Serialize() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册