import tensorflow as tf

    horizon_tgt1, horizon_tgt2 = tf.split(horizon_tgt, 2, axis=0)
    pred_flat1, pred_flat2 = tf.reshape(horizon_pred1, [-1, 1]), tf.reshape(horizon_pred2, [1, -1])
    tgt_flat1, tgt_flat2 = tf.reshape(horizon_tgt1, [-1, 1]), tf.reshape(horizon_tgt2, [1, -1])
    tgt_dif = tgt_flat1 - tgt_flat2
