TrainingExtensions/tensorflow/test/python/test_quantsim.py
def configure_quantization_ops(self, _conn_graph, _ops_with_param_names, _indices, _activation_op_names):
            """
            Overriding function for configuring quantization ops inserted by QuantizationSimModel
            :param self: Self refers to QuantizationSimModel object
            :param _conn_graph: Unused argument
            :param _ops_with_param_names: Unused argument
            :param _indices: Unused argument
            :param _activation_op_names: Unused argument
            """
            conv2d_relu_quant_info = self._activation_quantizers['conv2d/Relu_quantized']
            conv2d_relu_quant_info.enabled = False
            conv2d_relu_quant_info.enabled = True
            conv2d_1_weight_quant_info = self._param_quantizers['conv2d_1/Conv2D/ReadVariableOp_quantized']
            conv2d_1_weight_quant_info.enabled = False
            conv2d_1_weight_quant_info.enabled = True

            Overriding function for configuring quantization ops inserted by QuantizationSimModel
            :param self: Self refers to QuantizationSimModel object
            :param _conn_graph: Unused argument
            :param _ops_with_param_names: Unused argument
            :param _indices: Unused argument
            :param _activation_op_names: Unused argument
            
Overriding function for configuring quantization ops inserted by QuantizationSimModel
Overriding function for configuring quantization ops inserted by QuantizationSimModel
def configure_quantization_ops(self, _conn_graph, _ops_with_param_names, _indices, _activation_op_names):
            conv2d_relu_quant_info = self._activation_quantizers['conv2d/Relu_quantized']
            conv2d_relu_quant_info.enabled = False
            conv2d_relu_quant_info.enabled = True
            conv2d_1_weight_quant_info = self._param_quantizers['conv2d_1/Conv2D/ReadVariableOp_quantized']
            conv2d_1_weight_quant_info.enabled = False
            conv2d_1_weight_quant_info.enabled = True
def configure_quantization_ops ( self , _conn_graph , _ops_with_param_names , _indices , _activation_op_names ) : conv2d_relu_quant_info = self . _activation_quantizers [ 'conv2d/Relu_quantized' ] conv2d_relu_quant_info . enabled = False conv2d_relu_quant_info . enabled = True conv2d_1_weight_quant_info = self . _param_quantizers [ 'conv2d_1/Conv2D/ReadVariableOp_quantized' ] conv2d_1_weight_quant_info . enabled = False conv2d_1_weight_quant_info . enabled = True
Overriding function for configuring quantization ops inserted by QuantizationSimModel
Overriding function for configuring quantization ops inserted by QuantizationSimModel
"""
            Overriding function for configuring quantization ops inserted by QuantizationSimModel
            :param self: Self refers to QuantizationSimModel object
            :param _conn_graph: Unused argument
            :param _ops_with_param_names: Unused argument
            :param _indices: Unused argument
            :param _activation_op_names: Unused argument
            """
self
Self refers to QuantizationSimModel object
Self refers to QuantizationSimModel object
_conn_graph
None
_ops_with_param_names
None
_indices
None
_activation_op_names
None