title: Convert byte array back to numpy array
body: <p>You can convert a numpy array to bytes using <code>.tobytes()</code> function. </p>
  
  <p>How do decode it back from this bytes array to numpy array?
  I tried like this for array i of shape (28,28)</p>
  
  <p><code>&gt;&gt;k=i.tobytes()</code></p>
  
  <p><code>&gt;&gt;np.frombuffer(k)==i</code></p>
  
  <p><code>False</code></p>
  
  <p>also tried with uint8 as well.</p>