Fix SubgraphsDumper compilation Win (#20256)

This commit is contained in:
Irina Efode authored and GitHub committed 2023-10-05 13:22:25 +02:00
1 parent 4ad68e8ff2
commit 46dc704e3f
1 file changed
+6 -3
@@ -52,7 +52,8 @@ find_models(const std::vector<std::string> &dirs, const std::string& regexp) {
} else {
continue;
}
} catch (std::exception& e) {
} catch (...) {
// } catch (std::exception& e) {
not_read_model.emplace_back(model_file);
// std::cout << "[ ERROR ] Impossible to read model: " << model_file << std::endl << "Exception: " << e.what();
}
@@ -100,11 +101,13 @@ std::map<ModelCacheStatus, std::vector<std::string>> cache_models(
cache_status[ModelCacheStatus::LARGE_MODELS_INCLUDED].push_back(model);
}
cache->update_cache(function, model, extract_body, from_cache);
} catch (std::exception &e) {
} catch (...) {
// } catch (std::exception &e) {
// std::cout << "[ ERROR ] Model processing failed with exception:" << std::endl << e.what() << std::endl;
model_status = ModelCacheStatus::NOT_FULLY_CACHED;
}
} catch (std::exception &e) {
} catch (...) {
// } catch (std::exception &e) {
model_status = ModelCacheStatus::NOT_READ;
// std::cout << "[ ERROR ] Model reading failed with exception:" << std::endl << e.what() << std::endl;
}