📜  从张量 pytorch 中提取值 - Python 代码示例

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

代码示例1
x = torch.tensor([3])
x.item()