def calc_width(initial_w, l):
    """ Calculate the width for all hidden layers.

    :param initial_w: width of first layer
    :param l: number of hidden layers
    """
    widths = [initial_w]
    for i in range(1, l):
        widths.append(int(widths[i-1] / 2))

    return widths