From f6ba926838086b2e0950f78ab30308cd98fabc74 Mon Sep 17 00:00:00 2001 From: jiweibo Date: Sat, 27 Jun 2020 03:50:54 +0000 Subject: [PATCH] update init val. test=develop --- lite/api/cxx_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lite/api/cxx_api.h b/lite/api/cxx_api.h index 92e17128c0..c3339686aa 100644 --- a/lite/api/cxx_api.h +++ b/lite/api/cxx_api.h @@ -256,8 +256,8 @@ class CxxPaddleApiImpl : public lite_api::PaddlePredictor { bool status_is_cloned_; #ifdef LITE_WITH_CUDA bool multi_stream_{false}; - cudaStream_t* io_stream_; - cudaStream_t* exec_stream_; + cudaStream_t* io_stream_{nullptr}; + cudaStream_t* exec_stream_{nullptr}; cudaEvent_t input_event_; std::vector output_events_; // only for multi exec stream mode. -- GitLab