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.

Modifyting the intermediate layer activations

Biswas__Sudi
Beginner
342 Views

How can we modify the input activations of the intermediate layers? For example, if we want to use input activations as int4 instead of FP32 or int8, how can we do it.

0 Kudos
1 Reply
Gouveia__César
New Contributor I
342 Views

Hi Sudi,

I think there isn't a easy way to perform what you are looking for, since the openvino converter (model optimizer) only provides reduced precisions of FP16 (half floats). If you run the model optimizer with -h flag you will find:

--data_type {FP16,FP32,half,float}
                        Data type for all intermediate tensors and weights. If
                        original model is in FP32 and --data_type=FP16 is
                        specified, all model weights and biases are quantized
                        to FP16.

Hope it helps,

César.

0 Kudos
Reply