'Adds a softmax operation to this model'

def add_softmax(self):

    with tf.variable_scope(self._get_layer_str()):
        this_input = tf.square(self.get_output())
        reduction_indices = list(range(1, len(this_input.get_shape())))
        acc = tf.reduce_sum(this_input, reduction_indices=reduction_indices, keep_dims=True)
        out = (this_input / (acc + FLAGS.epsilon))
    self.outputs.append(out)
    return self
