Another difference is that reshape() can operate on both contiguous and ... Both .flatten() and .view(-1) flattens a tensor in PyTorch.
確定! 回上一頁