Skip to content

Commit d0943db

Browse files
authored
CHERRY_PICK: Fix the bug for inference when using auto grwoth allocator (#21623)
test=release/1.6
1 parent 1f598df commit d0943db

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

paddle/fluid/inference/api/analysis_predictor.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,6 @@ std::unique_ptr<PaddlePredictor> CreatePaddlePredictor<
505505
std::string flag = "--fraction_of_gpu_memory_to_use=" +
506506
std::to_string(fraction_of_gpu_memory);
507507
flags.push_back(flag);
508-
// use auto growth strategy here.
509-
flags.push_back("--allocator_strategy=auto_growth");
510508
flags.push_back("--cudnn_deterministic=True");
511509
VLOG(3) << "set flag: " << flag;
512510
framework::InitGflags(flags);

0 commit comments

Comments
 (0)