import torch import numpy as np x = []#list t = torch.zeros([2,3])##tensor n = np.array([[1,2,3],[1,1,1]])#numpy x = torch.tensor(x) x = x.cpu().numpy() x = x.tolist() t = t.tolist() t = np.array(t) t = torch.tensor(t) print('OVER')
import torch import numpy as np x = []#list t = torch.zeros([2,3])##tensor n = np.array([[1,2,3],[1,1,1]])#numpy x = torch.tensor(x) x = x.cpu().numpy() x = x.tolist() t = t.tolist() t = np.array(t) t = torch.tensor(t) print('OVER')