Skip to content

Commit

Permalink
Fix deprecated functions warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
likejazz authored Dec 5, 2016
1 parent c008eba commit 673b7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@
checkpoint_prefix = os.path.join(checkpoint_dir, "model")
if not os.path.exists(checkpoint_dir):
os.makedirs(checkpoint_dir)
saver = tf.train.Saver(tf.all_variables())
saver = tf.train.Saver(tf.global_variables())

# Write vocabulary
vocab_processor.save(os.path.join(out_dir, "vocab"))

# Initialize all variables
sess.run(tf.initialize_all_variables())
sess.run(tf.global_variables_initializer())

def train_step(x_batch, y_batch):
"""
Expand Down

0 comments on commit 673b7d1

Please sign in to comment.