In PyTorch docs it is written that torch.Tensor is an alias for torch.FloatTensor. This is not the case when using torch.tensor. For example:
>>> torch.Tensor([1,2,3]).dtype
torch.float32
>>> torch.tensor([1, 2, 3]).dtype
Out[32]: torch.int64
>>> torch.Tensor([True, False]).dtype
torch.float32
>>> torch.tensor([True, False]).dtype
torch.uint8

Isn’t this unnecessarily confusing?