(self,
                 opt,
                 scheme,
                 model,
                 trainloader,
                 testloader,
                 valloader,
                 criterion)
Creates a `Compressor` instance.

        :param opt: Optimizer.
        :type opt: `condensa.Optimizer`
        :param scheme: Compression scheme (class).
        :param model: PyTorch model.
        :type model: `torch.nn.Module`
        :param trainloader: Training dataloader.
        :param testloader: Test dataloader.
        :param valloader: Validation dataloader.
        :param criterion: Loss criterion.
Creates a `Compressor` instance.
Creates a Compressor instance .
def __init__(self,
                 opt,
                 scheme,
                 model,
                 trainloader,
                 testloader,
                 valloader,
                 criterion):
        """
        Creates a `Compressor` instance.

        :param opt: Optimizer.
        :type opt: `condensa.Optimizer`
        :param scheme: Compression scheme (class).
        :param model: PyTorch model.
        :type model: `torch.nn.Module`
        :param trainloader: Training dataloader.
        :param testloader: Test dataloader.
        :param valloader: Validation dataloader.
        :param criterion: Loss criterion.
        """
        assert isinstance(model, torch.nn.Module)

        self.opt = opt
        self.pi = scheme.pi
        self.delta = scheme.delta
        self.model = model
        self.trainloader = trainloader
        self.testloader = testloader
        self.valloader = valloader
        self.criterion = criterion

        self._statistics = None
def __init__ ( self , opt , scheme , model , trainloader , testloader , valloader , criterion ) : assert isinstance ( model , torch . nn . Module ) self . opt = opt self . pi = scheme . pi self . delta = scheme . delta self . model = model self . trainloader = trainloader self . testloader = testloader self . valloader = valloader self . criterion = criterion self . _statistics = None