TrainingExtensions/torch/src/python/aimet_torch/quantsim_config/quantsim_config.py
def _get_tensor_quantizers_for_input_false_setting(self, op: Op) -> List[TensorQuantizer]:
        """
        Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization
        disabled.
        :param op: Op to disable input quantization for
        :return: List of tensor quantizers that would be affected if the given op is specified to have input
        quantization disabled.
        """
        tensor_quantizers_for_input_false = []
        neighboring_input_ops = _get_all_ops_in_neighborhood(op, 'input')
        for input_op in neighboring_input_ops:
            if input_op.type != 'Split' and input_op.get_module() is not None and input_op.get_module() in \
                    self._module_to_quantsim_wrapper_dict:
                qc_quantize_wrapper = self._module_to_quantsim_wrapper_dict[input_op.get_module()]
                if neighboring_input_ops[input_op] == 'input':
                    tensor_quantizers_for_input_false.append(qc_quantize_wrapper.input_quantizer)
                else:
                    tensor_quantizers_for_input_false.append(qc_quantize_wrapper.output_quantizers[0])
        return tensor_quantizers_for_input_false

        Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization
        disabled.
        :param op: Op to disable input quantization for
        :return: List of tensor quantizers that would be affected if the given op is specified to have input
        quantization disabled.
        
Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization
disabled.
Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization disabled .
def _get_tensor_quantizers_for_input_false_setting(self, op: Op) -> List[TensorQuantizer]:
        tensor_quantizers_for_input_false = []
        neighboring_input_ops = _get_all_ops_in_neighborhood(op, 'input')
        for input_op in neighboring_input_ops:
            if input_op.type != 'Split' and input_op.get_module() is not None and input_op.get_module() in \
                    self._module_to_quantsim_wrapper_dict:
                qc_quantize_wrapper = self._module_to_quantsim_wrapper_dict[input_op.get_module()]
                if neighboring_input_ops[input_op] == 'input':
                    tensor_quantizers_for_input_false.append(qc_quantize_wrapper.input_quantizer)
                else:
                    tensor_quantizers_for_input_false.append(qc_quantize_wrapper.output_quantizers[0])
        return tensor_quantizers_for_input_false
def _get_tensor_quantizers_for_input_false_setting ( self , op : Op ) -> List [ TensorQuantizer ] : tensor_quantizers_for_input_false = [ ] neighboring_input_ops = _get_all_ops_in_neighborhood ( op , 'input' ) for input_op in neighboring_input_ops : if input_op . type != 'Split' and input_op . get_module ( ) is not None and input_op . get_module ( ) in self . _module_to_quantsim_wrapper_dict : qc_quantize_wrapper = self . _module_to_quantsim_wrapper_dict [ input_op . get_module ( ) ] if neighboring_input_ops [ input_op ] == 'input' : tensor_quantizers_for_input_false . append ( qc_quantize_wrapper . input_quantizer ) else : tensor_quantizers_for_input_false . append ( qc_quantize_wrapper . output_quantizers [ 0 ] ) return tensor_quantizers_for_input_false
Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization
disabled.
Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization disabled .
"""
        Get a list of tensor quantizers that would be affected if the given op is specified to have input quantization
        disabled.
        :param op: Op to disable input quantization for
        :return: List of tensor quantizers that would be affected if the given op is specified to have input
        quantization disabled.
        """
List of tensor quantizers that would be affected if the given op is specified to have input
quantization disabled.
List of tensor quantizers that would be affected if the given op is specified to have input quantization disabled .
self
op
Op
Op to disable input quantization for
Op to disable input quantization for