def subsample(inputs, factor, scope=None):
 if (factor == 1):
  return inputs
 else:
  return slim.max_pool2d(inputs, [1, 1], stride=factor, scope=scope)

def subsample ( inputs , factor , scope = None ) : if ( factor == 1 ) : return inputs else : return slim . max_pool2d ( inputs , [ 1 , 1 ] , stride = factor , scope = scope )
subsamples the input along the spatial dimensions .