def METHOD_NAME(input_size, filter_size, dilation, padding1,
                    padding2, stride):
    dkernel = dilation * (filter_size - 1) + 1
    return (input_size + padding1 + padding2 - dkernel) // stride + 1