forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyOV] Improve import_model memory consumption (openvinotoolkit#27451)
### Details: - Writing to stringstream caused additional copy - Usage of fstream also caused extra memory usage. Also we needed to proper handle saving/removal of the tmp_file. - So I've squeezed two `import_model` methods to one and I've implemented/reused custom buffer that wraps interactions with python memory without extra copies ### Tickets: - EISW-137436
- Loading branch information
1 parent
bcdaebf
commit c8ce8b9
Showing
3 changed files
with
46 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters