TL;DR: torch.flatten() · t.view(-1) won't copy memory, but may not work depending on original size and stride · t.resize(-1) gives RuntimeError (see below) · t.
確定! 回上一頁