TrainingExtensions/tensorflow/src/python/aimet_tensorflow/quantsim_config/quantsim_config.py
def _set_param_configs(self, param_configs: ParamType):
        """
        Set configurations for all params of specific types (second level of specificity in configuration file)
        :param param_configs: Dictionary containing configurations for parameters of certain types
        """
        for param_quantize_ops_dict, _ in self._op_to_quant_ops_dict.values():
            for param_name in param_quantize_ops_dict.keys():
                quantsim_param_name = MAP_TF_PARAM_NAME_TO_QUANTSIM_NAME.get(param_name, None)
                if quantsim_param_name is not None and quantsim_param_name in param_configs:
                    param_config = param_configs[quantsim_param_name]
                    for param_quantize_op in param_quantize_ops_dict[param_name]:
                        self._set_config_for_param(param_quantize_op, param_config)

        Set configurations for all params of specific types (second level of specificity in configuration file)
        :param param_configs: Dictionary containing configurations for parameters of certain types
        
Set configurations for all params of specific types (second level of specificity in configuration file)
Set configurations for all params of specific types ( second level of specificity in configuration file )
def _set_param_configs(self, param_configs: ParamType):
        for param_quantize_ops_dict, _ in self._op_to_quant_ops_dict.values():
            for param_name in param_quantize_ops_dict.keys():
                quantsim_param_name = MAP_TF_PARAM_NAME_TO_QUANTSIM_NAME.get(param_name, None)
                if quantsim_param_name is not None and quantsim_param_name in param_configs:
                    param_config = param_configs[quantsim_param_name]
                    for param_quantize_op in param_quantize_ops_dict[param_name]:
                        self._set_config_for_param(param_quantize_op, param_config)
def _set_param_configs ( self , param_configs : ParamType ) : for param_quantize_ops_dict , _ in self . _op_to_quant_ops_dict . values ( ) : for param_name in param_quantize_ops_dict . keys ( ) : quantsim_param_name = MAP_TF_PARAM_NAME_TO_QUANTSIM_NAME . get ( param_name , None ) if quantsim_param_name is not None and quantsim_param_name in param_configs : param_config = param_configs [ quantsim_param_name ] for param_quantize_op in param_quantize_ops_dict [ param_name ] : self . _set_config_for_param ( param_quantize_op , param_config )
Set configurations for all params of specific types (second level of specificity in configuration file)
Set configurations for all params of specific types ( second level of specificity in configuration file )
"""
        Set configurations for all params of specific types (second level of specificity in configuration file)
        :param param_configs: Dictionary containing configurations for parameters of certain types
        """
self
param_configs
ParamType
Dictionary containing configurations for parameters of certain types
Dictionary containing configurations for parameters of certain types