(self)
Move the model to CPU and clear CUDA cache
Move the model to CPU and clear CUDA cache
Move the model to CPU and clear CUDA cache
def to_cpu(self):
        """Move the model to CPU and clear CUDA cache
        """
        self.translator.model.cpu()
        if self.opt.cuda:
            torch.cuda.empty_cache()
def to_cpu ( self ) : self . translator . model . cpu ( ) if self . opt . cuda : torch . cuda . empty_cache ( )