#NEWLINE# def test_pooling_with_anon_variable( ) : #NEWLINE# #INDENT# '\n    Ensure that pooling works with anonymous\n    variables.\n    ' #NEWLINE# X_sym = tensor . ftensor4 ( ) #NEWLINE# shp = ( 3 , 3 ) #NEWLINE# strd = ( 1 , 1 ) #NEWLINE# im_shp = ( 6 , 6 ) #NEWLINE# pool_0 = max_pool ( X_sym , pool_shape = shp , pool_stride = strd , image_shape = im_shp , try_dnn = False ) #NEWLINE# pool_1 = mean_pool ( X_sym , pool_shape = shp , pool_stride = strd , image_shape = im_shp )