def tf_stretch(s, interval):
    """
    s: 1-d a tensor
    interval: [a,b], the lower/upper bound of the interval to stretch up
    """
    s_bar = s * (interval[1] - interval[0]) + interval[0]
    return s_bar