diff --git a/paddle/fluid/framework/executor_cache.cc b/paddle/fluid/framework/executor_cache.cc index f4158c4e8bb4658051176175fbd5df84b0d7ade8..5df7c49bc9ac790ea585c3d093bce52730dd5d63 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();