Skip to content
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

Double-check size of returned blob dimensions #58

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Jan 4, 2023

As discussed here, this change adds a (perhaps overkill) safety check of the size of the dimensions array returned by the OpenVINO library. The added assertion is trying to avoid the improbable case where some future version of the OpenVINO library returns a dimensions array with size different than the one auto-generated in the bindings; see struct dimensions in openvino-sys/src/generated/types.rs.

As discussed [here], this change adds a (perhaps overkill) safety check
of the size of the dimensions array returned by the OpenVINO library.
The added assertion is trying to avoid the improbable case where some
future version of the OpenVINO library returns a dimensions array with
size different than the one auto-generated in the bindings; see `struct
dimensions` in `openvino-sys/src/generated/types.rs`.

[here]: intel#56 (comment)
@abrown abrown marked this pull request as ready for review January 4, 2023 16:56
@abrown abrown merged commit 14c4e43 into intel:main Jan 4, 2023
@abrown abrown deleted the dimension-safety branch January 4, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant