xlnstorch.LNSTensor.to#
- LNSTensor.to(device=None)#
Converts the LNSTensor to a specified device. Analogous to
https://docs.pytorch.org/docs/stable/generated/torch.Tensor.to.html
- Parameters:
device (str, torch.device, optional) – The device to which the LNSTensor should be moved. If not specified, the LNSTensor will remain on the current device.
- Returns:
A new LNSTensor on the specified device with the same data and base.
- Return type: