def receptive_field_conv(kernel, stride, n0=1, n_lyrs=1):
    """
    Compute receptive field for convolution layers

    Parameters
    ----------
    kernel
        kernel size
    stride
        stride size
    n0
        receptive field from previous layer
    n_lyrs
        number of layers

    Returns
    -------
    receptive field
    """
    n1 = n0
    for i in range(n_lyrs):
        n1 = kernel + (n1 - 1) * stride
    return n1