From f4d267c2e0328356e073d0ffaed2bbdc27914f07 Mon Sep 17 00:00:00 2001 From: xiaoxiaohehe001 <49090790+xiaoxiaohehe001@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:37:10 +0800 Subject: [PATCH] add_paddle_test (#49640) --- paddle/fluid/inference/api/analysis_predictor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index 2c1e6ba95d..a5526c7443 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -1362,7 +1362,10 @@ void AnalysisPredictor::OptimizeInferenceProgram() { // The config and argument take a lot of storage, // when the predictor settings are complete, we release these stores. config_.PartiallyRelease(); +#if defined(PADDLE_WITH_TESTING) fusion_statis_ = *argument_->fusion_statis_ptr(); +#endif + #if defined(_WIN32) argument_->PartiallyRelease(); #else -- GitLab