TrainingExtensions/tensorflow/src/python/aimet_tensorflow/quantsim_config/quantsim_config.py
def _set_supergroup_configs(self, supergroups_configs: List[SupergroupType]):
        """
        Set supergroup specific configurations (fourth level of specificity in configuration file)
        :param supergroups_configs: Configurations for supergroups
        """
        patterns_with_callbacks = []
        for supergroup_config in supergroups_configs:
            callback = SupergroupConfigCallback(self._sess, self._op_to_quant_ops_dict)
            patterns = self._build_supergroup_patterns(supergroup_config, callback, self._onnx_conn_graph_name_mapper)
            for pattern in patterns:
                patterns_with_callbacks.append(pattern)

        if patterns_with_callbacks:
            graph_searcher = GraphSearcher(self._conn_graph, patterns_with_callbacks)
            graph_searcher.find_all_patterns_in_graph_apply_actions()

        Set supergroup specific configurations (fourth level of specificity in configuration file)
        :param supergroups_configs: Configurations for supergroups
        
Set supergroup specific configurations (fourth level of specificity in configuration file)
Set supergroup specific configurations ( fourth level of specificity in configuration file )
def _set_supergroup_configs(self, supergroups_configs: List[SupergroupType]):
        patterns_with_callbacks = []
        for supergroup_config in supergroups_configs:
            callback = SupergroupConfigCallback(self._sess, self._op_to_quant_ops_dict)
            patterns = self._build_supergroup_patterns(supergroup_config, callback, self._onnx_conn_graph_name_mapper)
            for pattern in patterns:
                patterns_with_callbacks.append(pattern)
        if patterns_with_callbacks:
            graph_searcher = GraphSearcher(self._conn_graph, patterns_with_callbacks)
            graph_searcher.find_all_patterns_in_graph_apply_actions()
def _set_supergroup_configs ( self , supergroups_configs : List [ SupergroupType ] ) : patterns_with_callbacks = [ ] for supergroup_config in supergroups_configs : callback = SupergroupConfigCallback ( self . _sess , self . _op_to_quant_ops_dict ) patterns = self . _build_supergroup_patterns ( supergroup_config , callback , self . _onnx_conn_graph_name_mapper ) for pattern in patterns : patterns_with_callbacks . append ( pattern ) if patterns_with_callbacks : graph_searcher = GraphSearcher ( self . _conn_graph , patterns_with_callbacks ) graph_searcher . find_all_patterns_in_graph_apply_actions ( )
Set supergroup specific configurations (fourth level of specificity in configuration file)
Set supergroup specific configurations ( fourth level of specificity in configuration file )
"""
        Set supergroup specific configurations (fourth level of specificity in configuration file)
        :param supergroups_configs: Configurations for supergroups
        """
self
supergroups_configs
List[SupergroupType]
Configurations for supergroups
Configurations for supergroups