In this release, we introduce torch.dtype, torch.device and torch.layout classes to allow better management of these properties via NumPy-style creation functions.
torch.dtype
Below is a complete list of available torch.dtypes (data types) and their corresponding tensor types.



Data
type torch.dtype
Tensor types




32-bit floating point
torch.float32 or torch.float
torch.*.FloatTensor


64-bit floating point
torch.float64 or torch.double
torch.*.DoubleTensor


16-bit floating point
torch.float16 or torch.half
torch.*.HalfTensor


