nouiz/Theano — comment on commit 93a4f8e959417132a3acb2e1103b06614913c65e
File: theano/tensor/opt.py line 935
By jaberg:

normally we've already inferred shape info for r, and now we're connecting it to new_r... so it's new_r we want to change, it should come first.

I can see the interest of calling both actually.
self.update_shape(new_r, r)
self.update_shape(r, new_r)