nncf/common/pruning/utils.py
def message(cls, node_name: str, decision: Optional['PruningAnalysisDecision']) -> str:
        """
        Returns the node pruning analysis decisions in a human-readable format.

        :param node_name: Name of given node.
        :param decision: Pruning analysis decision for given node.
        :return: Pruning analysis decision in a human-readable format.
        """
        prefix = f'ignored adding Weight Pruner in: {node_name}'
        reasons = decision.reasons
        if not reasons:
            return prefix
        # Filter messages
        if len(reasons) > 1 and cls.CLOSING_CONV_MISSING in reasons:
            reasons.remove(cls.CLOSING_CONV_MISSING)
        if len(reasons) == 1 and cls.IN_GROUP_OF_UNPRUNABLE in reasons:
            return ''
        return prefix + ' because ' + ' and '.join([reason.value for reason in reasons])

        Returns the node pruning analysis decisions in a human-readable format.

        :param node_name: Name of given node.
        :param decision: Pruning analysis decision for given node.
        :return: Pruning analysis decision in a human-readable format.
        
Returns the node pruning analysis decisions in a human-readable format.
Returns the node pruning analysis decisions in a human - readable format .
def message(cls, node_name: str, decision: Optional['PruningAnalysisDecision']) -> str:
        prefix = f'ignored adding Weight Pruner in: {node_name}'
        reasons = decision.reasons
        if not reasons:
            return prefix
        if len(reasons) > 1 and cls.CLOSING_CONV_MISSING in reasons:
            reasons.remove(cls.CLOSING_CONV_MISSING)
        if len(reasons) == 1 and cls.IN_GROUP_OF_UNPRUNABLE in reasons:
            return ''
        return prefix + ' because ' + ' and '.join([reason.value for reason in reasons])
def message ( cls , node_name : str , decision : Optional [ 'PruningAnalysisDecision' ] ) -> str : prefix = f'ignored adding Weight Pruner in: {node_name}' reasons = decision . reasons if not reasons : return prefix if len ( reasons ) > 1 and cls . CLOSING_CONV_MISSING in reasons : reasons . remove ( cls . CLOSING_CONV_MISSING ) if len ( reasons ) == 1 and cls . IN_GROUP_OF_UNPRUNABLE in reasons : return '' return prefix + ' because ' + ' and ' . join ( [ reason . value for reason in reasons ] )
Returns the node pruning analysis decisions in a human-readable format.
Returns the node pruning analysis decisions in a human - readable format .
"""
        Returns the node pruning analysis decisions in a human-readable format.

        :param node_name: Name of given node.
        :param decision: Pruning analysis decision for given node.
        :return: Pruning analysis decision in a human-readable format.
        """ # Filter messages
Pruning analysis decision in a human-readable format.
Pruning analysis decision in a human - readable format .
cls
node_name
str
Name of given node.
Name of given node .
decision
Optional['PruningAnalysisDecision']
Pruning analysis decision for given node.
Pruning analysis decision for given node .