Community
cancel
Showing results for 
Search instead for 
Did you mean: 
78 Views

How to use OutputInfo Class in Python API

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
78 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

Reply