View在pytorch中view函数的作用为重构张量的维度,相当于numpy中resize()的功能, ... 3, 32, 32) print(a.shape) a1 = a.transpose(1, 3).contiguous().view(4, ...
確定! 回上一頁