openvino/samples/cpp/benchmark/sync_benchmark
Sebastian Golebiewski 9ebacbb379
[DOCS] Merge Samples Articles Language Versions (#21661)
* Merge samples

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* additional resources

* Update docs/articles_en/learn_openvino/openvino_samples/model_creation.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* reorganize contents of requirements

* remove api reference

* add links to READMEs on repo

* remove speech recognition sample

* removal of deprecation notice

* update conversion steps

* Revert remove speech recognition sample

* remove trailing spaces

* fix links

* Removed unwanted changes from submodules

* applying suggestions

* update api reference

* apply suggestions

---------

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2024-01-12 14:24:15 +01:00
..
CMakeLists.txt Moved cmake functions, variables to API 2.0 naming style (#20281) 2023-10-09 22:30:32 +04:00
README.md [DOCS] Merge Samples Articles Language Versions (#21661) 2024-01-12 14:24:15 +01:00
main.cpp Extend sync benchmark CLI parameters (#20844) 2023-11-03 09:51:22 +01:00

README.md

Sync Benchmark C++ Sample

This sample demonstrates how to estimate performance of a model using Synchronous Inference Request API. It makes sense to use synchronous inference only in latency oriented scenarios. Models with static input shapes are supported. Unlike demos this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.

For more detailed information on how this sample works, check the dedicated article

Requirements

Options Values
Validated Models alexnet,
googlenet-v1,
yolo-v3-tf,
face-detection-0200
Model Format OpenVINO™ toolkit Intermediate Representation
(*.xml + *.bin), ONNX (*.onnx)
Supported devices All
Other language realization Python

The following C++ API is used in the application:

Feature API Description
OpenVINO Runtime Version ov::get_openvino_version Get Openvino API version.
Basic Infer Flow ov::Core, ov::Core::compile_model, Common API to do inference: compile a model,
ov::CompiledModel::create_infer_request, create an infer request,
ov::InferRequest::get_tensor configure input tensors.
Synchronous Infer ov::InferRequest::infer, Do synchronous inference.
Model Operations ov::CompiledModel::inputs Get inputs of a model.
Tensor Operations ov::Tensor::get_shape, Get a tensor shape and its data.
ov::Tensor::data