diff --git a/lite/api/cxx_api.h b/lite/api/cxx_api.h index 92e17128c0c2a2abcb36a54911cb8d5fdf3d5af0..c3339686aa9c3e7960224b2d674820f71817dc79 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.