Skip to content

Commit

Permalink
Added additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Oct 21, 2024
1 parent 361fd89 commit c5c1110
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/frontends/onnx/frontend/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ bool FrontEnd::supported_impl(const std::vector<ov::Any>& variants) const {
return false;
}
ModelProto* model_proto_ptr = static_cast<ModelProto*>(model_proto_addr);
if (!model_proto_ptr->has_ir_version() || model_proto_ptr->ir_version() > Version::IR_VERSION) {
try {
if (!model_proto_ptr->has_ir_version() || model_proto_ptr->ir_version() > Version::IR_VERSION) {
return false;
}
} catch (...) {
return false;
}
return true;
Expand Down

0 comments on commit c5c1110

Please sign in to comment.