import torchb=torch.arange(12)print(b)print("----")print(b.reshape(3,4))print(b.reshape(-1,4))print(b.reshape(3,-1))print(b.reshape(2,2,3)) print(b.reshape(2,2,-1)) #
print(b.reshape(2,3,2)) #大空行分开2行,每行中有三行,有2列
import torchb=torch.arange(12)print(b)print("----")print(b.reshape(3,4))print(b.reshape(-1,4))print(b.reshape(3,-1))print(b.reshape(2,2,3)) print(b.reshape(2,2,-1)) #
print(b.reshape(2,3,2)) #大空行分开2行,每行中有三行,有2列
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。