lamblin/Theano — comment on commit bd27a4624cd44a2c36eb721cfd5f4e5f221bb60b
File: theano/gof/graph.py line 173
By nouiz:

I'm not sure what we should do here. Why do we need that when it is strict we still call filter_variable?

What about this:
1) if strict and not equal, raise
2) if not strict and not equal, try filter_variable. If work, remake op(needed as the input will be a new variable, but should work as it is of the same dtype.)
3) else, remake op and hope it will accept the new type.