What's the difference between reshape and view in pytorch? : <p>In numpy, we use <code>ndarray.reshape()</code> for reshaping an array.</p>

<p>I noticed that in pytorch, people use <code>torch.view(...)</code> for the same purpose, but at the same time, there is also a <code>torch.reshape(...)</code> existing.</p>

<p>So I am wondering what the differences are between them and when I should use either of them?</p>
