1. from numpy to tensortensor_data = torch.from_numpy(numpy_data) ex>a = np.array([1.,2.])print(type(a))>> print(a)>> [1. 2.]b = torch.from_numpy(a).float()print(type(b))>> print(b)>> tensor([1., 2.]) 2. from tensor to numpynumpy_data = tensor_data.numpy() ex>a = torch.tensor([1, 2])print(type(a))>> print(a)>> tensor([1, 2])b = a.numpy()print(type(b))>> print(b)>> [1 2] 3. from tensor to PILImag..