TrainingExtensions/tensorflow/src/python/aimet_tensorflow/quantsim_config/quantsim_config.py
def configure_quantizers(self, op_to_quant_ops_dict: OpToQuantOpsDictType,
                             param_quantizer_dict: Dict[str, QuantizerInfo],
                             activation_quantizer_dict: Dict[str, QuantizerInfo]):
        """
        Configures quantizers based on config file
        """
        self._op_to_quant_ops_dict = op_to_quant_ops_dict
        self._param_quantizer_dict = param_quantizer_dict
        self._activation_quantizer_dict = activation_quantizer_dict
        self._op_to_quantizer_lists_dict = self._get_op_to_quantizer_lists_dict()

        # Set all quantizers to pass through mode first
        self._disable_all_quantizers()
        self._set_quantsim_configs()

        Configures quantizers based on config file
        
Configures quantizers based on config file
Configures quantizers based on config file
def configure_quantizers(self, op_to_quant_ops_dict: OpToQuantOpsDictType,
                             param_quantizer_dict: Dict[str, QuantizerInfo],
                             activation_quantizer_dict: Dict[str, QuantizerInfo]):
        self._op_to_quant_ops_dict = op_to_quant_ops_dict
        self._param_quantizer_dict = param_quantizer_dict
        self._activation_quantizer_dict = activation_quantizer_dict
        self._op_to_quantizer_lists_dict = self._get_op_to_quantizer_lists_dict()
        self._disable_all_quantizers()
        self._set_quantsim_configs()
def configure_quantizers ( self , op_to_quant_ops_dict : OpToQuantOpsDictType , param_quantizer_dict : Dict [ str , QuantizerInfo ] , activation_quantizer_dict : Dict [ str , QuantizerInfo ] ) : self . _op_to_quant_ops_dict = op_to_quant_ops_dict self . _param_quantizer_dict = param_quantizer_dict self . _activation_quantizer_dict = activation_quantizer_dict self . _op_to_quantizer_lists_dict = self . _get_op_to_quantizer_lists_dict ( ) self . _disable_all_quantizers ( ) self . _set_quantsim_configs ( )
Configures quantizers based on config file
Configures quantizers based on config file
"""
        Configures quantizers based on config file
        """ # Set all quantizers to pass through mode first
self
op_to_quant_ops_dict
OpToQuantOpsDictType
param_quantizer_dict
Dict[str, QuantizerInfo]
activation_quantizer_dict
Dict[str, QuantizerInfo]