Theano/Theano — pull request #1010 by goodfeli (2012-10-11 22:30:32+00:00)
Title: Fix clip grad

This fixes two problems with the clip gradient:
1. It assumed the output was constant with respect to the clipping range parameters in all cases
2. Incorrect handling of integers / incompatibility with the new grad interface

I also added unit tests for both.