(self, device_id=None)
return self._apply(lambda t: t.cuda(device_id))
Moves all model parameters and buffers to the GPU.

            Args:
                device_id (int, optional): if specified, all parameters will be
                    copied to that device
Moves all model parameters and buffers to the GPU.
Moves all model parameters and buffers to the GPU .
def cuda(self, device_id=None):
        """ Moves all model parameters and buffers to the GPU.

            Args:
                device_id (int, optional): if specified, all parameters will be
                    copied to that device
        """
        self.is_cuda = True
        return self._apply(lambda t: t.cuda(device_id))
def cuda ( self , device_id = None ) : self . is_cuda = True return self . _apply ( lambda t : t . cuda ( device_id ) )