change snippet name (#20538)

This commit is contained in:
Tatiana Savina 2023-10-18 11:27:10 +02:00 committed by GitHub
parent d82cd839ce
commit 4574fb112c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -68,14 +68,14 @@ in the model preparation script for such a case.
.. doxygensnippet:: docs/snippets/ov_preprocessing.py
:language: Python
:fragment: ov:preprocess:save
:fragment: ov:preprocess:save_model
.. tab-item:: C++
:sync: cpp
.. doxygensnippet:: docs/snippets/ov_preprocessing.cpp
:language: cpp
:fragment: ov:preprocess:save
:fragment: ov:preprocess:save_model
Application Code - Load Model to Target Device

View File

@ -165,7 +165,7 @@ int main() {
//! [ov:preprocess:save_headers]
void save_example() {
//! [ov:preprocess:save]
//! [ov:preprocess:save_model]
// ======== Step 0: read original model =========
ov::Core core;
std::shared_ptr<ov::Model> model = core.read_model("/path/to/some_model.onnx");
@ -200,7 +200,7 @@ void save_example() {
std::string xml = "/path/to/some_model_saved.xml";
std::string bin = "/path/to/some_model_saved.bin";
ov::serialize(model, xml, bin);
//! [ov:preprocess:save]
//! [ov:preprocess:save_model]
}

View File

@ -184,7 +184,7 @@ from openvino import serialize
model_path = get_path_to_model()
serialized_model_path = get_path_to_model()
# ! [ov:preprocess:save]
# ! [ov:preprocess:save_model]
# ======== Step 0: read original model =========
core = Core()
model = core.read_model(model=model_path)
@ -219,7 +219,7 @@ set_batch(model, 2)
# ======== Step 3: Save the model ================
serialize(model, serialized_model_path)
# ! [ov:preprocess:save]
# ! [ov:preprocess:save_model]
path_to_cache_dir = get_temp_dir()