import tensorflow as tf

    hn = tf.identity(hn, name='hn')                #add the output pre-activation value to the graph for later retrieval

    #Create a saver for the Model
    if save_model == True:
        saver = tf.train.Saver()

    #-----------------Initialize the cost and gradients---------------------------------------------------------

