def test_pooling_with_anon_variable():
 X_sym = tensor.ftensor4()
 shp = (3, 3)
 strd = (1, 1)
 im_shp = (6, 6)
 pool_0 = max_pool(X_sym, pool_shape=shp, pool_stride=strd, image_shape=im_shp, try_dnn=False)
 pool_1 = mean_pool(X_sym, pool_shape=shp, pool_stride=strd, image_shape=im_shp)

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