摘要:
import torch b = [] c = [] a = torch.tensor((9)) print(a) b.append(a) print(b) c.append(a.item()) print(c) 结果: a: tensor(0) b: [tensor(0)] c: [0] caut 阅读全文
posted @ 2021-05-06 17:25
id_ning
阅读(68)
评论(0)
推荐(0)
摘要:
版权声明:本文为CSDN博主「初识-CV」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_38410428/article/details/101102075 阅读全文
posted @ 2021-05-06 14:15
id_ning
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号