'Transforms the output of this network to a 1D tensor'

def add_flatten(self):

    with tf.variable_scope(self._get_layer_str()):
        batch_size = int(self.get_output().get_shape()[0])
        out = tf.reshape(self.get_output(), [batch_size, (-1)])
    self.outputs.append(out)
    return self
