#NEWLINE# def test_max_pooling_ignore_border_true( ) : #NEWLINE# #INDENT# x = tensor . tensor4 ( 'x' ) #NEWLINE# brick = MaxPooling ( ( 3 , 4 ) , ignore_border = True ) #NEWLINE# y = brick . apply ( x ) #NEWLINE# out = y . eval ( { #NEWLINE# #INDENT# x : numpy . zeros ( ( 8 , 3 , 10 , 13 ) , dtype = theano . config . floatX ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( brick . shape == ( 8 , 3 , 3 , 3 ) )