📜  火炬张量到熊猫数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.497000             🧑  作者: Mango

代码示例2
import torch
import pandas as  pd

x = torch.rand(4,4)
px = pd.DataFrame(x.numpy())