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.

Python API OpenVINO release detection?

Kulecz__Walter
New Contributor I
1,940 Views

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
1,940 Views

Dear Kulecz, Walter,

Checking on this. Will get back to you.

Thanks for using OpenVino !

Shubha

 

0 Kudos
Shubha_R_Intel
Employee
1,940 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

0 Kudos
Reply