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.

How to use OutputInfo Class in Python API

Chakraborty__Subhasi
363 Views

How can i use OutputInfo Class to set precision and output layout in python API ? There are no python samples which provides a example to use the OutputInfo class. Any help will be highly appreciated.

 

 

0 Kudos
1 Reply
Shubha_R_Intel
Employee
363 Views

Hi there. For more information about the python API please check here:

https://software.intel.com/en-us/articles/OpenVINO-InferEngine and on the left panel, click IENetLayer Class .

precision - Precision of the output data. Provides setter and getter interfaces
to get and modify output layer precision.

So the code to set output precision is following:

net.output['fc3'].precision = "I32"

Currently there is no setter for output layer changing.

Also please keep in mind:

all precision changes have an effect only before loading the IENetwork object to the IEPlugin (before ExecutableNetwork creation). After loading it is impossible to change precision because blobs are already allocated

0 Kudos
Reply