[sibgraph_dumper] Fix sporadic cache volume growth (#21352)

This commit is contained in:
Sofya Balandina 2023-11-30 07:05:43 +00:00 committed by GitHub
parent 3cae6e7aea
commit fa1cc89cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,7 @@ void OpCache::update_cache(const std::shared_ptr<ov::Node>& node,
return;
// cloned_node->set_friendly_name(ov::test::functional::get_node_version(cloned_node));
for (auto &&it : m_ops_cache) {
in_info_is_matched = true;
if (m_manager.match(it.first, cloned_node)) {
// std::cout << "Match " << cloned_node->get_type_info().name << " " << cloned_node->get_friendly_name() <<
// " with " << it.first->get_friendly_name() << std::endl;

View File

@ -78,7 +78,10 @@ def generate_model_list_file(input_str: str, re_exp_file_path: str, output_file_
dirs = [model_dir_path]
if dir_re_exp != "*":
if is_latest_only:
dirs = [find_latest_dir(model_dir_path, dir_re_exp)]
try:
dirs = [find_latest_dir(model_dir_path, dir_re_exp)]
except:
dirs = []
else:
dirs = Path(model_dir_path).glob(dir_re_exp)
for dir in dirs: