Skip to content

Commit

Permalink
add reset_default_graph to save RAM, fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bethany Lusch authored and Bethany Lusch committed Oct 12, 2019
1 parent eb0d087 commit db3abf9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions training.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import numpy as np
import os
import tensorflow as tf
import time

import numpy as np
import tensorflow as tf

import helperfns
import networkarch as net

Expand Down Expand Up @@ -285,7 +286,7 @@ def try_net(data_val, params):
params['time_exp'] = time.time() - start
saver.restore(sess, params['model_path'])
helperfns.save_files(sess, csv_path, train_val_error, params, weights, biases)

tf.reset_default_graph()

def main_exp(params):
"""Set up and run one random experiment.
Expand Down

0 comments on commit db3abf9

Please sign in to comment.