Reset in memory cache capacity to 10000 instead of infinite (#14290)

This commit is contained in:
Taylor Yeonbok Lee 2022-12-01 19:45:30 -08:00 committed by GitHub
parent 3eac2cd613
commit ddfc7b0ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,8 +277,7 @@ private:
// Move from cldnn::program to cldnn::network for multi-threads issue. // Move from cldnn::program to cldnn::network for multi-threads issue.
std::unique_ptr<ImplementationsCache> _impls_cache; std::unique_ptr<ImplementationsCache> _impls_cache;
std::unique_ptr<KernelsCache> _in_mem_kernels_cache; std::unique_ptr<KernelsCache> _in_mem_kernels_cache;
// TODO: initial version use unlimited caches. Need to adjust it once dynamic flow works on wide set of models. const size_t _impls_cache_capacity = 10000;
const size_t _impls_cache_capacity = 0; const size_t _in_mem_kernels_cache_capacity = 10000;
const size_t _in_mem_kernels_cache_capacity = 0;
}; };
} // namespace cldnn } // namespace cldnn