Tensors can be created from NumPy arrays (and vice versa - see Bridge with NumPy). np_array = np.array(data) x_np = torch.from_numpy(np_array)
確定! 回上一頁