import torch #Creates two tensor objects #Where X is a simple 1 Dimentional Tensor #Y is a vector X = torch.tensor(1.0) Y = torch.tensor([1.0,2.0]) #Alternatively we can also create a tensor from data like this Z = torch.tensor([[1.0,2.0,3.0], [2.0,3.0,4.0], [3.0,4.0,5.0]])