The short answer is: don’t use torch.FloatTensor to create tensors, but stick to the factory methods, such as torch.randn, torch.ones, torch.empty, torch.tensor, etc.
The former approach might have unexpected behavior (as see in this topic), could yield an uninitialized tensor (as explained by @Dwight_Foster) etc.