Add exeception message to check available frontends. (#8914)

This commit is contained in:
Jade Cho authored and GitHub committed 2021-12-03 10:47:51 +09:00
1 parent a9a583eb42
commit 6d039f7eb5
1 file changed
+5 -1
+5 -1
View File
@@ -484,9 +484,13 @@ CNNNetwork details::ReadNetwork(const std::string& modelPath,
}
const auto fileExt = modelPath.substr(modelPath.find_last_of(".") + 1);
std::string FEs;
for (const auto& fe_name : manager.get_available_front_ends())
FEs += fe_name + " ";
IE_THROW(NetworkNotRead) << "Unable to read the model: " << modelPath
<< " Please check that model format: " << fileExt
<< " is supported and the model is correct.";
<< " is supported and the model is correct."
<< " Available frontends: " << FEs;
}
CNNNetwork details::ReadNetwork(const std::string& model,