Theano/Theano — pull request #1074 by goodfeli (2012-11-16 22:26:17+00:00)
Title: Adds a unit test of undefined gradients on integers

In the old code, this unit test would have caused an error, ie, it would have blown up gracelessly rather than returning a bad result.

In Pascal's recent PR, it would have silently returned a bad result.

This PR makes it gracefully raise a specific exception.