摘要:
一、张量的创建与类型 张量最基本创建方法和Numpy中创建Array的格式一致,都是创建函数的格式。 1.1 通过列表创建 t = torch.tensor([1, 2]) print(t) # tensor([1, 2]) 1.2 通过元组创建 t = torch.tensor((1, 2)) p 阅读全文
posted @ 2024-02-28 17:11
qev211
阅读(49)
评论(0)
推荐(0)
浙公网安备 33010602011771号