Skip to content

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.

abrown added 3 commits January 3, 2023 16:12
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