Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Kulecz__Walter
New Contributor I
397 Views

Python API OpenVINO release detection?

Is there anyway to detect the OpenVINO release version at runtime in the Python API?

I notice that the CPU target now accepts FP16 models whereas the previous (2019r1.1 specifically) release apparently did not.

This means I could dispense with the FP32 models and reduce the size of my package significantly, but this could be a backward compatability nightmare for me.

0 Kudos
2 Replies
Shubha_R_Intel
Employee
397 Views

Dear Kulecz, Walter,

Checking on this. Will get back to you.

Thanks for using OpenVino !

Shubha

 

Shubha_R_Intel
Employee
397 Views

Dear Kulecz, Walter,

The below method is common for all Python modules:

import openvino.inference_engine as ie
print(ie.__version__)

Also:

core = IECore()
version = core.get_versions('CPU')
print('Plugin {}. Version: {}.{}.{}'.format(version.description, version.major, version.minor, version.build_number))

Hope it helps,

Thanks,

Shubha

Reply