How to create a high dimension tensor with fixed shape and dtype?
How to create a high dimension tensor with fixed shape and dtype? Question: I want to return a tensor with fixed shape size, like, torch.Size([1,345]) However, when I input, import torch pt1 = torch.tensor(data=(1, 345), dtype=torch.int64) it only return torch.Size([2]) I followed some tensor tutorial a tried to pt1 = torch.tensor(1, 345, dtype=torch.int64) pt1 = …