-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[C API] support string size for char pointer #19931
[C API] support string size for char pointer #19931
Conversation
* @return Status code of the operation: OK(0) for success. | ||
*/ | ||
OPENVINO_C_API(ov_status_e) | ||
ov_core_read_model_from_memory_with_size(const ov_core_t* core, |
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.
Maybe we can come up the better name... For example: ov_core_read_model_from_memory_buffer
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.
Also we can deprecate old method, because these methods provide the same functionality
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 if deprecate old method maybe lead to some compatibility problem if this API has been used by user application.
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 in this case user will get a deprecation warning, but it is a normal process and without it we cannot change or remove legacy API. I don't talk about deletion of legacy method immediately, only about the deprecation and removing later.
From my point of view two methods will confuse users...
* [C API] support string size for char pointer * rename function name * Add deprecated flag * Add macro to ignore deprecated * Fix build error in windows --------- Co-authored-by: Ilya Churaev <[email protected]>
Details:
Tickets: