(self, density, block_size, criteria=F.l2norm)
Creates an instance of `BlockPrune`.

        :param density: Target density.
        :type density: `float`
        :param block_size: Target block size.
        :type block_size: `Tuple`
        :param criteria: Structure aggregation criteria (default: l2norm).
        :type criteria: `condensa.functional`
Creates an instance of `BlockPrune`.
Creates an instance of BlockPrune .
def __init__(self, density, block_size, criteria=F.l2norm):
        """
        Creates an instance of `BlockPrune`.

        :param density: Target density.
        :type density: `float`
        :param block_size: Target block size.
        :type block_size: `Tuple`
        :param criteria: Structure aggregation criteria (default: l2norm).
        :type criteria: `condensa.functional`
        """
        self.density = density
        self.block_size = block_size
        self.criteria = criteria
        self.layer_types = [torch.nn.Linear]
def __init__ ( self , density , block_size , criteria = F . l2norm ) : self . density = density self . block_size = block_size self . criteria = criteria self . layer_types = [ torch . nn . Linear ]