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

Perf counter by layer OpenVINO C API

VictorMrt
Beginner
612 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
591 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



0 Kudos
VictorMrt
Beginner
575 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

 

0 Kudos
Iffa_Intel
Moderator
570 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#a2194bc8c557868822bbfd260e8ef1a08



Sincerely,

Iffa


0 Kudos
Iffa_Intel
Moderator
548 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


0 Kudos
Reply