From 4dbf93aad0af21459af84c179dc257e5008c6502 Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Fri, 9 Dec 2022 16:56:03 +0800 Subject: [PATCH] Revert "set free_when_no_cache_hit default value to true (#48815)" This reverts commit 592ed40b58d7bc015de87368cc611e865bdcd6ea. --- .../fluid/memory/allocation/auto_growth_best_fit_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator.cc b/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator.cc index 309f6c3fdd1..d91e8c54fb3 100644 --- a/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator.cc +++ b/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator.cc @@ -31,7 +31,7 @@ PADDLE_DEFINE_EXPORTED_READONLY_bool( PADDLE_DEFINE_EXPORTED_READONLY_bool( free_when_no_cache_hit, - true, + false, "Whether to free idle chunks when no cache hit. If true, idle " "chunk would be freed when no cache hit; if false, idle " "chunk would be freed when out of memory occurs. This flag " -- GitLab