def _pool_size_fcn(inp, padding, kernel, stride):
    """ Return the output size or a pool layer with the given params. """
    numerator = inp + (2*padding) - kernel
    return int((numerator/stride) + 1)