nncf/common/pruning/node_selector.py
def _get_multiforward_nodes(self, graph: NNCFGraph) -> List[List[NNCFNode]]:
        """
        Groups nodes based on their `layer_name` property to determine groups of nodes belonging to
        a single weighted layer object in the model, i.e. the group of operations in the graph that reuse one and
        the same set of weights, and returns the groups that have more than one element.

        :return: List of lists of nodes; each list corresponds to a group of nodes united by the common
         underlying layer object of the original model.
        """
        ret = defaultdict(list)
        for node in graph.get_nodes_by_types(self._prune_operations_types):
            ret[node.layer_name].append(node)
        return [ret[module_identifier] for module_identifier in ret if len(ret[module_identifier]) > 1]

        Groups nodes based on their `layer_name` property to determine groups of nodes belonging to
        a single weighted layer object in the model, i.e. the group of operations in the graph that reuse one and
        the same set of weights, and returns the groups that have more than one element.

        :return: List of lists of nodes; each list corresponds to a group of nodes united by the common
         underlying layer object of the original model.
        
Groups nodes based on their `layer_name` property to determine groups of nodes belonging to
a single weighted layer object in the model, i.e. the group of operations in the graph that reuse one and
the same set of weights, and returns the groups that have more than one element.
Groups nodes based on their ` layer_name ` property to determine groups of nodes belonging to a single weighted layer object in the model i . e . the group of operations in the graph that reuse one and the same set of weights and returns the groups that have more than one element .
def _get_multiforward_nodes(self, graph: NNCFGraph) -> List[List[NNCFNode]]:
        ret = defaultdict(list)
        for node in graph.get_nodes_by_types(self._prune_operations_types):
            ret[node.layer_name].append(node)
        return [ret[module_identifier] for module_identifier in ret if len(ret[module_identifier]) > 1]
def _get_multiforward_nodes ( self , graph : NNCFGraph ) -> List [ List [ NNCFNode ] ] : ret = defaultdict ( list ) for node in graph . get_nodes_by_types ( self . _prune_operations_types ) : ret [ node . layer_name ] . append ( node ) return [ ret [ module_identifier ] for module_identifier in ret if len ( ret [ module_identifier ] ) > 1 ]
Groups nodes based on their `layer_name` property to determine groups of nodes belonging to
a single weighted layer object in the model, i.e.
Groups nodes based on their ` layer_name ` property to determine groups of nodes belonging to a single weighted layer object in the model i . e .
"""
        Groups nodes based on their `layer_name` property to determine groups of nodes belonging to
        a single weighted layer object in the model, i.e. the group of operations in the graph that reuse one and
        the same set of weights, and returns the groups that have more than one element.

        :return: List of lists of nodes; each list corresponds to a group of nodes united by the common
         underlying layer object of the original model.
        """
List of lists of nodes; each list corresponds to a group of nodes united by the common
underlying layer object of the original model.
List of lists of nodes ; each list corresponds to a group of nodes united by the common underlying layer object of the original model .
self
graph
NNCFGraph