From fbbd94a6ce2c0a3389f06b89a48f75447a0b5193 Mon Sep 17 00:00:00 2001 From: Zhaolong Xing Date: Wed, 11 Dec 2019 18:25:21 +0800 Subject: [PATCH] there is bug for inference using auto grwoth allocator (#21621) test=develop --- paddle/fluid/inference/api/analysis_predictor.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index b23d0841c9a..6bb4e8e925a 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -506,8 +506,6 @@ std::unique_ptr CreatePaddlePredictor< std::string flag = "--fraction_of_gpu_memory_to_use=" + std::to_string(fraction_of_gpu_memory); flags.push_back(flag); - // use auto growth strategy here. - flags.push_back("--allocator_strategy=auto_growth"); flags.push_back("--cudnn_deterministic=True"); VLOG(3) << "set flag: " << flag; framework::InitGflags(flags); -- GitLab