- 可以认为
a.reshape = a.view() + a.contiguous().view()
,所以建议仅仅使用reshape
即可。(参考PyTorch:view() 与 reshape() 区别详解)
上一页

2021-05-11
下一页

2021-05-04