[CONFORMANCE] Add progress bar to Subgraphs Dumper (#19235)

This commit is contained in:
Irina Efode 2023-08-18 11:59:22 +04:00 committed by GitHub
parent dc6f04f475
commit e9fdf0cac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,10 +82,13 @@ std::map<ModelCacheStatus, std::vector<std::string>> cache_models(
{ ModelCacheStatus::NOT_READ, {} }
};
auto core = ov::test::utils::PluginCache::get().core();
auto models_size = models.size();
for (auto& cache : caches) {
for (const auto& model : models) {
for (size_t i = 0; i < models_size; ++i) {
const auto& model = models[i];
if (ov::util::file_exists(model)) {
std::cout << "[ INFO ] [ " << i << "/" << models_size << " ] model will be processed" << std::endl;
ModelCacheStatus model_status = ModelCacheStatus::SUCCEED;
try {
std::shared_ptr<ov::Model> function = core->read_model(model);