Community
cancel
Showing results for 
Search instead for 
Did you mean: 
VictorMrt
Beginner
52 Views

Perf counter by layer OpenVINO C API

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
3 Replies
Iffa_Intel
Moderator
31 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
15 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
10 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


Reply