torch.from_numpy(ndarray) # torch.empty(size) # torch.empty_like(input) l=[[1,2,3],[4,5,6]] #列表 nparray=np.array(l) #numpy数组
確定! 回上一頁