def test_lmul(self):
        conv2d = Conv2D(self.filters, self.batch_size, self.input_space,
                        output_axes=('b', 'c', 0, 1),)
        f_co = theano.function([self.image_tensor],
                               conv2d.lmul(self.image_tensor))
        f_cu = theano.function([self.image_tensor],
                               self.cudnn2d.lmul(self.image_tensor))
        self.assertTrue(np.allclose(f_co(self.image), f_cu(self.image)))
Use conv2D to check whether the convolution worked correctly.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/linear/tests/test_cudnn.py/TestCudnn.test_lmul