def kernel_regularizer_factory(regularizer_factor):
    if (regularizer_factor == 0.0):
        return None
    else:
        return regularizers.l2(regularizer_factor)
def kernel_regularizer_factory(regularizer_factor):
    if (regularizer_factor == 0.0):
        return None
    else:
        return regularizers.l2(regularizer_factor)