title: How to debug shape mismatch of theano tensor?
body: <p>I defined a Theano tensor <code>m = T.imatrix('m')</code> and used it as an argument of a theano function <code>foo</code>. </p>
  
  <p>When I now call <code>foo(arr)</code> with a numpy array <code>arr</code> of shape (100,3), I'd expect that <code>m[:, 1]</code> would have the shape (100,). </p>
  
  <p>However, the error message shows that the shape is (1,100). How can I examine the function mismatch step by step?</p>