title: Using reshape or view in a certain fashion
body: <pre><code>import torch
  import numpy as np
  a = torch.tensor([[1, 4], [2, 5],[3, 6]])
  bb=a.detach().numpy()
  b = a.view(6).detach().numpy()
  </code></pre>
  <p>Element <code>b</code> is like:</p>
  <pre><code>[1 4 2 5 3 6]
  </code></pre>
  <p>How do I reshape back to the following:</p>
  <pre><code>[1 2 3 4 5 6]
  </code></pre>
  <p>This is just an example, want some generic answers, even 3D.</p>