diff --git a/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp b/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp index 2f2702800e6..1a3634dfe53 100644 --- a/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp +++ b/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp @@ -93,15 +93,15 @@ int main(int argc, char *argv[]) { std::vector local_cache_dirs = CommonTestUtils::splitStringByDelimiter(FLAGS_local_cache); std::vector dirs = CommonTestUtils::splitStringByDelimiter(FLAGS_input_folders); - auto cachedOps = findModelsInDirs(local_cache_dirs); auto models = findModelsInDirs(dirs); auto cache = SubgraphsDumper::OPCache::make_cache(); if (!FLAGS_local_cache.empty()) { + auto cachedOps = findModelsInDirs(local_cache_dirs); cacheModels(cache, ret_code, cachedOps, FLAGS_extract_body); } cacheModels(cache, ret_code, models, FLAGS_extract_body); cache->serialize_cached_ops(FLAGS_output_folder); return ret_code; -} \ No newline at end of file +}