Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

Perf counter by layer OpenVINO C API

VictorMrt
Beginner
263 Views

Hello, 

I'm working in C API on OpenVINO and i'm looking for the information about clock CPU of each layer of my CNN like the option "-report_type detailed_counter" in benchmark tool in C++. 

I imagine that it's directly linked to the PERF_COUNT option in the executable etwork config ut i have no idea how to get it. 

 

Thanks 

0 Kudos
4 Replies
Iffa_Intel
Moderator
242 Views

Greetings,


You may use the Benchmark Application (available both in C++ and Python) for that performance counter purpose.


The -pc option is an Optionalcommand to Report performance counters.

You may refer here: https://docs.openvinotoolkit.org/latest/openvino_inference_engine_samples_benchmark_app_README.html



Sincerely,

Iffa



VictorMrt
Beginner
226 Views

Hello,

I'm not looking to use the C++ benchmark tool but to write a code with the OpenVINO C API to get the same information as the -pc option on CPU.

I have to use this code on a machine that does not have all the C++ libraries.

It is possible ?

 

Best regards,

Victor

 

Iffa_Intel
Moderator
221 Views

Unfortunately, currently, we don't have much of that functionality supported in C++.

However, we do have it in Python API: https://docs.openvinotoolkit.org/latest/ie_python_api/classie__api_1_1InferRequest.html#a2194bc8c557...



Sincerely,

Iffa


Iffa_Intel
Moderator
199 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.


Sincerely,

Iffa


Reply