摘要:
数据操作 import torch x=torch.arange(12) # x的output为 tensor([0,1,2,3,4,5,6,7,8,9,10,11]) # 可以通过张量的shape属性来访问张量的形状和张量中元素的总数 x.shape # output: torch.Size([1 阅读全文
posted @ 2024-01-08 15:36
naiveSummer
阅读(104)
评论(0)
推荐(0)
浙公网安备 33010602011771号