torch.Tensor.to
Tensor.to(args, *kwargs) -> Tensor
Performs Tensor dtype and/or device conversion. A "torch.dtype" and
   "torch.device" are inferred from the arguments of "self.to(args,
   *kwargs)".
Note:
 If the "self" Tensor already has the correct "torch.dtype" and
 "torch.device", then "self" is returned. Otherwise, the returned
 tensor is a copy of "self" with the desired "torch.dtype" and
 "torch.device".

Here are the ways to call "to":
to(dtype, non_blocking=False, copy=False, memory_format=torch.preserve_format) -> Tensor
     Returns a Tensor with the specified "dtype"

     Args:
        memory_format ("torch.memory_format", optional): the
        desired memory format of returned Tensor. Default:
        "torch.preserve_format".

torch.to(device=None, dtype=None, non_blocking=False, copy=False, memory_format=torch.preserve_format) -> Tensor
     Returns a Tensor with the specified "device" and (optional)
