How to use NNCF to perform unsigned asymmetric quantization? #3302
              
                Unanswered
              
          
                  
                    
                      huangqiu15444
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 6 replies
-
| Hello @huangqiu15444, The provided example specifies the symmetric for activation and asymmetric for weights quantization scheme. May I know your motivation for using this quantization scheme? NNCF returns an error because this quantization scheme is not hardware friendly and does not supported in OpenVINO. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            -
| If I want to set the quantization methods for both activation and weights to “asymmetric_quantized - u8”, does NNCF support this? weight quantization | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
my cdoe:
import nncf
from nncf.quantization.advanced_parameters import AdvancedQuantizationParameters,QuantizationParameters
from nncf import QuantizationMode
weights_quantization_params = QuantizationParameters()
weights_quantization_params.per_channel = False
weights_quantization_params.signedness_to_force = False
weights_quantization_params.mode = 'asymmetric'
quantized_model = nncf.quantize(model, quantization_dataset, advanced_parameters=add_quant_params)
errr report:
ValueError: Quantization parameter constraints specified in NNCF config are incompatible with HW capabilities as specified in HW config type 'CPU'. First conflicting quantizer location: ResNet/Conv2d[conv1]/conv2d_0
Beta Was this translation helpful? Give feedback.
All reactions