* add compile tool description * change refs * remove page to build docs * doc reference fix * review comments * fix comment * snippet comment * Update docs/snippets/compile_model.cpp Co-authored-by: Ilya Churaev <ilyachur@gmail.com> * change snippet name * create ov object * code block fix * cpp code block * include change * code test * change snippet * Update docs/snippets/export_compiled_model.cpp Co-authored-by: Ilya Churaev <ilyachur@gmail.com> --------- Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
20 lines
270 B
C++
20 lines
270 B
C++
|
|
#include <openvino/runtime/core.hpp>
|
|
|
|
int main() {
|
|
|
|
//! [export_compiled_model]
|
|
ov::Core core;
|
|
|
|
std::stringstream stream;
|
|
|
|
ov::CompiledModel model = core.compile_model("modelPath", "deviceName");
|
|
|
|
model.export_model(stream);
|
|
|
|
//! [export_compiled_model]
|
|
|
|
return 0;
|
|
}
|
|
|