def configure_networks(self):
    self.build_network()
    optimizer = tf.train.AdamOptimizer(self.conf.learning_rate)
    self.train_op = optimizer.minimize(self.loss_op, name='train_op')
    tf.set_random_seed(self.conf.random_seed)
    self.sess.run(tf.global_variables_initializer())
    trainable_vars = tf.trainable_variables()
    self.saver = tf.train.Saver(var_list=trainable_vars, max_to_keep=0)
    self.writer = tf.summary.FileWriter(self.conf.logdir, self.sess.graph)
def configure_networks(self):
    self.build_network()
    optimizer = tf.train.AdamOptimizer(self.conf.learning_rate)
    self.train_op = optimizer.minimize(self.loss_op, name='train_op')
    tf.set_random_seed(self.conf.random_seed)
    self.sess.run(tf.global_variables_initializer())
    trainable_vars = tf.trainable_variables()
    self.saver = tf.train.Saver(var_list=trainable_vars, max_to_keep=0)
    self.writer = tf.summary.FileWriter(self.conf.logdir, self.sess.graph)