title: How to transpose numpy ndarray in place?
body: <p>I'm using numpy.</p>
  
  <p>I have an ndarray with shape of [T, H, W, C] and I want to transpose it to become like: [T, C, H, W]. However, this array is huge and I want to be memory-efficient.</p>
  
  <p>But I just found <code>np.transpose</code> to do this which is <strong>not in-place</strong>.</p>
  
  <p>Why do operations like <code>np.transpose</code> don't have their in-place counterpart?</p>
  
  <p>I used to think that any operation named <code>np.Bar</code> would have its in-place counterpart named <code>np.Bar_</code>, only to find that this is not the truth.</p>