From 897fb6ab8a137f40e352a63990015b62d156d7b7 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Mon, 27 Mar 2023 17:28:27 +0800 Subject: [PATCH] [NewExe]Adjust ExecutorCache Capacity from 4 into 10 (#52104) --- paddle/fluid/framework/executor_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/executor_cache.cc b/paddle/fluid/framework/executor_cache.cc index f4158c4e8bb..5df7c49bc9a 100644 --- a/paddle/fluid/framework/executor_cache.cc +++ b/paddle/fluid/framework/executor_cache.cc @@ -298,7 +298,7 @@ std::shared_ptr CreateInterpreterCoreInfoToCache( framework::Scope *scope) { auto &interpretercore_info_cache = framework::InterpreterCoreInfoCache::Instance(); - if (interpretercore_info_cache.Size() > 4u /* max_cached_size*/) { + if (interpretercore_info_cache.Size() > 10u /* max_cached_size*/) { VLOG(2) << "The cached info size has exceeded max_cached_size: 4, clear " "all cache!"; interpretercore_info_cache.Finalize(); -- GitLab