def get_q(kernel_size: int, dilation: int):
    """Get apparent kernel size

    Args:
        kernel_size: kernel size
        dilation: dilate ratio of kernel
    """
    return (kernel_size - 1) * dilation + 1 if kernel_size % 2 == 1 else kernel_size * dilation