Skip to content

Commit 57d6d82

Browse files
committed
Fixed print for python3
1 parent 5251aac commit 57d6d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

10_save_restore_net.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def model(X, w_h, w_h2, w_o, p_keep_input, p_keep_hidden): # this network is the
6363

6464
ckpt = tf.train.get_checkpoint_state(ckpt_dir)
6565
if ckpt and ckpt.model_checkpoint_path:
66-
print ckpt.model_checkpoint_path
66+
print(ckpt.model_checkpoint_path)
6767
saver.restore(sess, ckpt.model_checkpoint_path) # restore all variables
6868

6969
start = global_step.eval() # get last global_step
70-
print "Start from:", start
70+
print("Start from:", start)
7171

7272
for i in range(start, 100):
7373
for start, end in zip(range(0, len(trX), 128), range(128, len(trX), 128)):

0 commit comments

Comments
 (0)