import tensorflow as tf

    horizon_pred, horizon_tgt = horizon_sumV1(pred, horizon), horizon_sumV1(tgt, horizon)
    # horizon_pred, horizon_tgt = horizon_sumV2(pred, tgt, horizon)

    pred_flat1, pred_flat2 = tf.reshape(horizon_pred, [-1, 1]), tf.reshape(horizon_pred, [1, -1])
    tgt_flat1, tgt_flat2 = tf.reshape(horizon_tgt, [-1, 1]), tf.reshape(horizon_tgt, [1, -1])
    tgt_dif = tgt_flat1 - tgt_flat2
