(self, module)
Applies compression scheme to module.
    
        :param module: PyTorch module.
        :type module: `torch.nn.Module`
Applies compression scheme to module.
    
        :param module: PyTorch module.
        :type module: `torch.nn.Module`
Applies compression scheme to module . : param module : PyTorch module . : type module : torch . nn . Module
def pi(self, module):
        """
        Applies compression scheme to module.
    
        :param module: PyTorch module.
        :type module: `torch.nn.Module`
        """
        threshold = self.threshold(module)
        for m in module.modules():
            if type(m) in self.layer_types and not hasattr(
                    m, 'condensa_nocompress'):
                condensa.blockprune(m,
                                    threshold,
                                    block_size=self.block_size,
                                    criteria=self.criteria)
def pi ( self , module ) : threshold = self . threshold ( module ) for m in module . modules ( ) : if type ( m ) in self . layer_types and not hasattr ( m , 'condensa_nocompress' ) : condensa . blockprune ( m , threshold , block_size = self . block_size , criteria = self . criteria )