(self)
Move the model to GPU
Move the model to GPU
Move the model to GPU
def to_gpu(self):
        """Move the model to GPU
        """
        torch.cuda.set_device(self.opt.gpu)
        self.translator.model.cuda()
def to_gpu ( self ) : torch . cuda . set_device ( self . opt . gpu ) self . translator . model . cuda ( )