-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[NPU] Accept blobs compiled with a limited set of minor version #32532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[NPU] Accept blobs compiled with a limited set of minor version #32532
Conversation
Signed-off-by: alexandruenache1111 <[email protected]>
| std::unique_ptr<MetadataBase> storedMeta; | ||
| storedMeta = create_metadata(metaVersion, blobDataSize); | ||
| storedMeta->read(stream); | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this try-catch mechanism here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because create_metadata or read may throw exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you just throw the exceptions further. You don't handle them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. I am not a fan of passing exceptions along the function stack. However, the motivation here would be to "append exception messages until one is not handled and the execution is halted".
| CURRENT_METADATA_MAJOR_VERSION, | ||
| ".", | ||
| CURRENT_METADATA_MINOR_VERSION); | ||
| OPENVINO_THROW(ex.what()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question here.
Details:
Tickets: