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

[C API] support string size for char pointer #19931

Merged

Conversation

riverlijunjie
Copy link
Contributor

@riverlijunjie riverlijunjie commented Sep 19, 2023

Details:

  • Add string size for C API reading model from memory

Tickets:

@riverlijunjie riverlijunjie requested a review from a team as a code owner September 19, 2023 01:14
@github-actions github-actions bot added the category: C API OpenVINO C API bindings label Sep 19, 2023
* @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,
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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...

@ilya-lavrenov ilya-lavrenov added this to the 2023.2 milestone Sep 19, 2023
@ilya-lavrenov ilya-lavrenov enabled auto-merge (squash) October 2, 2023 10:23
@ilya-lavrenov ilya-lavrenov disabled auto-merge October 2, 2023 10:24
@ilya-lavrenov ilya-lavrenov merged commit 32b4ae7 into openvinotoolkit:master Oct 2, 2023
31 of 34 checks passed
alvoron pushed a commit to alvoron/openvino that referenced this pull request Nov 6, 2023
* [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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: C API OpenVINO C API bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Improve the ov_core_read_model_from_memory API Definition in OpenVINO Library
3 participants