Theano/Theano — pull request #188 by jaberg (2011-11-04 03:47:21+00:00)
Title: Fix failing tests in tensor module

On my machine in FAST_RUN mode, with floatX=float32, the only failures in tensor tests are KnownFailures. I haven't run the tests on GPU.

The main fixes to pay attention to deal with the support code. There are two methods for returning support_code:

1. Op.c_support_code(self) - returns generic (not node-specific) support code

2. Op.c_support_code_apply(self, node, nodename) - returns node-specific support code

These methods should generally both be used (one does not supersede the other) and the mistake was that Elemwise was not providing both.

There was also a silly error in CeilTester - testing the gradients at points like 2.0, -1.0 and other integers where the ceil function is discontinuous.