TrainingExtensions/tensorflow/src/python/aimet_tensorflow/quantsim_config/quantsim_config.py
def _set_model_input_configs(self, model_input_configs: ConfigType):
        """
        Set model input specific configurations (fifth level of specificity in configuration file)
        :param model_input_configs: Configuration for model inputs
        """

        # In TF, turning model input quantization on actually means turning on the output quantizer of the input
        # placeholder op.  Thus we replace the IS_INPUT_QUANTIZED field with IS_OUTPUT_QUANTIZED instead.
        if ConfigDictKeys.IS_INPUT_QUANTIZED in model_input_configs and \
                model_input_configs[ConfigDictKeys.IS_INPUT_QUANTIZED]:
            del model_input_configs[ConfigDictKeys.IS_INPUT_QUANTIZED]
            model_input_configs[ConfigDictKeys.IS_OUTPUT_QUANTIZED] = True
            input_ops = get_all_input_ops(self._conn_graph)
            for op in input_ops:
                if op in self._op_to_quantizer_lists_dict:
                    modified_quantize_ops = {}
                    self._set_config_for_op(self._op_to_quantizer_lists_dict[op], model_input_configs,
                                            modified_quantize_ops)

        Set model input specific configurations (fifth level of specificity in configuration file)
        :param model_input_configs: Configuration for model inputs
        
Set model input specific configurations (fifth level of specificity in configuration file)
Set model input specific configurations ( fifth level of specificity in configuration file )
def _set_model_input_configs(self, model_input_configs: ConfigType):
        if ConfigDictKeys.IS_INPUT_QUANTIZED in model_input_configs and \
                model_input_configs[ConfigDictKeys.IS_INPUT_QUANTIZED]:
            del model_input_configs[ConfigDictKeys.IS_INPUT_QUANTIZED]
            model_input_configs[ConfigDictKeys.IS_OUTPUT_QUANTIZED] = True
            input_ops = get_all_input_ops(self._conn_graph)
            for op in input_ops:
                if op in self._op_to_quantizer_lists_dict:
                    modified_quantize_ops = {}
                    self._set_config_for_op(self._op_to_quantizer_lists_dict[op], model_input_configs,
                                            modified_quantize_ops)
def _set_model_input_configs ( self , model_input_configs : ConfigType ) : if ConfigDictKeys . IS_INPUT_QUANTIZED in model_input_configs and model_input_configs [ ConfigDictKeys . IS_INPUT_QUANTIZED ] : del model_input_configs [ ConfigDictKeys . IS_INPUT_QUANTIZED ] model_input_configs [ ConfigDictKeys . IS_OUTPUT_QUANTIZED ] = True input_ops = get_all_input_ops ( self . _conn_graph ) for op in input_ops : if op in self . _op_to_quantizer_lists_dict : modified_quantize_ops = { } self . _set_config_for_op ( self . _op_to_quantizer_lists_dict [ op ] , model_input_configs , modified_quantize_ops )
Set model input specific configurations (fifth level of specificity in configuration file)
Set model input specific configurations ( fifth level of specificity in configuration file )
"""
        Set model input specific configurations (fifth level of specificity in configuration file)
        :param model_input_configs: Configuration for model inputs
        """ # In TF, turning model input quantization on actually means turning on the output quantizer of the input # placeholder op.  Thus we replace the IS_INPUT_QUANTIZED field with IS_OUTPUT_QUANTIZED instead.
self
model_input_configs
ConfigType
Configuration for model inputs
Configuration for model inputs