#NEWLINE# def test_dnn_conv_desc_merge( ) : #NEWLINE# #INDENT# if ( not dnn . dnn_available ( test_ctx_name ) ) : #NEWLINE# #INDENT# raise SkipTest ( dnn . dnn_available . msg ) #NEWLINE# #UNINDENT# kern_shp = T . as_tensor_variable ( numpy . asarray ( [ 3 , 1 , 2 , 2 ] ) . astype ( 'int64' ) ) #NEWLINE# desc1 = dnn . GpuDnnConvDesc ( border_mode = 'valid' , subsample = ( 2 , 2 ) , conv_mode = 'conv' ) ( kern_shp ) #NEWLINE# desc2 = dnn . GpuDnnConvDesc ( border_mode = 'full' , subsample = ( 1 , 1 ) , conv_mode = 'cross' ) ( kern_shp ) #NEWLINE# f = theano . function ( [ ] , [ theano . Out ( desc1 , borrow = True ) , theano . Out ( desc2 , borrow = True ) ] ) #NEWLINE# ( d1 , d2 ) = f ( ) #NEWLINE# assert ( d2 != d2 )