摘要: permute(dims),常用的维度转换方法将tensor的维度换位 参数:dim(int)---换位顺序>>>x = torch.randn(2,3,5)>>>x.size()torch.size([2,3,5])>>>x.permute(2,0,1).size()torch.size([5,2,3])contiguous()contiguous:view只能用在contiguous... 阅读全文
posted @ 2018-07-22 22:44 彼岸花杀是条狗 阅读(2802) 评论(0) 推荐(0) 编辑