def fg_model(fg_r, fg_i, fg_comps):
    vr = tf.reduce_sum((fg_r * fg_comps), axis=0)
    vi = tf.reduce_sum((fg_i * fg_comps), axis=0)
    return (vr, vi)
def fg_model(fg_r, fg_i, fg_comps):
    vr = tf.reduce_sum((fg_r * fg_comps), axis=0)
    vi = tf.reduce_sum((fg_i * fg_comps), axis=0)
    return (vr, vi)