-
Notifications
You must be signed in to change notification settings - Fork 28
Add compiled model functions #115
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
Add compiled model functions #115
Conversation
Co-authored-by: Bradley Odell <[email protected]>
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.
LGTM with some minor fix-ups.
crates/openvino/src/model.rs
Outdated
/// Get the single input port of the compiled model, | ||
/// which only support single input model. |
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.
/// Get the single input port of the compiled model, | |
/// which only support single input model. | |
/// Get the single input port of the compiled model, which must have a single input. |
Wonder what happens if it doesn't.
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.
In debug, it would throw an assertion and terminate -
OPENVINO_ASSERT(inputs.size() == 1,
"CompiledModel::input() must be called on a compiled model with exactly one parameter.");
return inputs.at(0);
In release, it would just return first (0th) index input
Co-authored-by: Andrew Brown <[email protected]>
Co-authored-by: Andrew Brown <[email protected]>
No description provided.