import tensorflow as tf

    # add final layer bias
    b = tf.Variable(tf.constant(0.1, shape=[nb_classes]), name="b")
    # calc l2 losses
    l2_loss += tf.nn.l2_loss(W)
    l2_loss += tf.nn.l2_loss(b)
    
    # do logit = W*X+b
    logit = tf.nn.xw_plus_b(H_drop, W, b, name="scores")
