import copy


def initialize_rms_weights(weights):
    """
    Initializes weights for rms prop
    :param weights: type list of lists: weights in each layer
    :return: zeroed list of lists with the same dimensions as the input list of lists
    """
    rms_weights = copy.deepcopy(weights)
    for weight,bias in rms_weights:
        weight[:] = 0
        bias[:] = 0
    return rms_weights