呼叫view之前最好先contiguous,也就是 x.contiguous().view() 因為view需要tensor的記憶體是整塊的. contiguous:中文意思連續的。view只能用 ...
確定! 回上一頁