def MaxPool2d(net, filter_size=(2, 2), strides=None, padding='SAME', name='maxpool'):
 if (strides is None):
  strides = filter_size
 net = PoolLayer(net, ksize=[1, filter_size[0], filter_size[1], 1], strides=[1, strides[0], strides[1], 1], padding=padding, pool=tf.nn.max_pool, name=name)
 return net

def MaxPool2d ( net , filter_size = ( 2 , 2 ) , strides = None , padding = 'SAME' , name = 'maxpool' ) : if ( strides is None ) : strides = filter_size net = PoolLayer ( net , ksize = [ 1 , filter_size [ 0 ] , filter_size [ 1 ] , 1 ] , strides = [ 1 , strides [ 0 ] , strides [ 1 ] , 1 ] , padding = padding , pool = tf . nn . max_pool , name = name ) return net
wrapper for :class:poollayer .