import tensorflow as tf

    '''
    y_pairs = tf.reshape(output, [-1,2]) # fold: 1 x n -> [n/2 x 2]
    pos_scores, neg_scores = tf.split(1, 2, y_pairs) # separate pairs
    hinge_losses = tf.nn.relu(margin - pos_scores + neg_scores)
