Skip to content

Commit

Permalink
Fix rendering of serialize and save_model (openvinotoolkit#23013)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
 - *...*

### Tickets:
 - 133915
  • Loading branch information
akuporos authored Feb 28, 2024
1 parent bd57987 commit 160b193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bindings/python/src/pyopenvino/pyopenvino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ PYBIND11_MODULE(_pyopenvino, m) {
This method serializes model "as-is" that means no weights compression is applied.
It is recommended to use ov::save_model function instead of ov::serialize in all cases
when it is not related to debugging.
:param model: model which will be converted to IR representation
:type model: openvino.runtime.Model
:param xml_path: path where .xml file will be saved
Expand All @@ -130,6 +131,8 @@ PYBIND11_MODULE(_pyopenvino, m) {
the same name as for xml_path will be used by default.
:type bin_path: Union[str, bytes, pathlib.Path]
:param version: version of the generated IR (optional).
:type version: str
Supported versions are:
- "UNSPECIFIED" (default) : Use the latest or model version
- "IR_V10" : v10 IR
Expand Down Expand Up @@ -182,6 +185,7 @@ PYBIND11_MODULE(_pyopenvino, m) {
This method saves a model to IR applying all necessary transformations that usually applied
in model conversion flow provided by mo tool. Paricularly, floatting point weights are
compressed to FP16, debug information in model nodes are cleaned up, etc.
:param model: model which will be converted to IR representation
:type model: openvino.runtime.Model
:param output_model: path to output model file
Expand Down

0 comments on commit 160b193

Please sign in to comment.