Skip to content

Commit f003d9f

Browse files
author
Parag K. Mital
committed
remove model check in charrnn infer
1 parent 729ca02 commit f003d9f

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

session-5/libs/charrnn.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,8 @@ def infer(txt,
326326
tf.local_variables_initializer())
327327
saver = tf.train.Saver()
328328
sess.run(init_op)
329-
if os.path.exists(ckpt_name):
330-
saver.restore(sess, ckpt_name)
331-
print("Model restored.")
329+
saver.restore(sess, ckpt_name)
330+
print("Model restored.")
332331

333332
state = []
334333
synth = [init_value]
0 Bytes
Binary file not shown.

session-5/trump.ckpt.index

-10 Bytes
Binary file not shown.

session-5/trump.ckpt.meta

4.66 MB
Binary file not shown.

0 commit comments

Comments
 (0)