From 592ed40b58d7bc015de87368cc611e865bdcd6ea Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Thu, 8 Dec 2022 10:25:37 +0800 Subject: [PATCH] set free_when_no_cache_hit default value to true (#48815) --- .../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 27c7563fee8..972665562c3 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, - false, + true, "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