(a: TfExpressionEx, b: TfExpressionEx, t: TfExpressionEx)
Linear interpolation with clip.
Linear interpolation with clip.
Linear interpolation with clip .
def lerp_clip(a: TfExpressionEx, b: TfExpressionEx, t: TfExpressionEx) -> TfExpression:
    """Linear interpolation with clip."""
    with tf.name_scope("LerpClip"):
        return a + (b - a) * tf.clip_by_value(t, 0.0, 1.0)
def lerp_clip ( a : TfExpressionEx , b : TfExpressionEx , t : TfExpressionEx ) -> TfExpression : with tf . name_scope ( "LerpClip" ) : return a + ( b - a ) * tf . clip_by_value ( t , 0.0 , 1.0 )