#NEWLINE# def test_lmul( self ) : #NEWLINE# #INDENT# '\n        Use conv2D to check whether the convolution worked correctly.\n        ' #NEWLINE# conv2d = Conv2D ( self . filters , self . batch_size , self . input_space , output_axes = ( 'b' , 'c' , 0 , 1 ) ) #NEWLINE# f_co = theano . function ( [ self . image_tensor ] , conv2d . lmul ( self . image_tensor ) ) #NEWLINE# f_cu = theano . function ( [ self . image_tensor ] , self . cudnn2d . lmul ( self . image_tensor ) ) #NEWLINE# self . assertTrue ( np . allclose ( f_co ( self . image ) , f_cu ( self . image ) ) )