Theano/Theano — pull request #2276 by f0k (2014-11-21 15:25:19+00:00)
Title: Add grad() to GpuDnnConvGrad* ops

With #2272 and #2273, `dnn_conv()` can insert `GpuDnnConvGradI` and `GpuDnnConvGradW` instead of `GpuDnnConv`. Now if a user uses `dnn_conv()` to introduce a non-strided full convolution into a graph, it will be based on `GpuDnnConvGradI`, which doesn't have a gradient defined. This PR adds the necessary gradients of gradients.

I'm quite sure everything is correct, but I cannot get `nosetests -s theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py:test_conv_grads` to pass, there are some broadcast pattern problems (and just enforcing the old pattern in local_conv_dnn() brings up new problems of the "Some CudaNdarray has dim 4 on broadcastable dimension 0" flavor). Can anyone confirm this / solve this?