Skip to content

Commit 04b54f8

Browse files
Print Total Epochs during Test Step
1 parent 2d24886 commit 04b54f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: train.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def test_step(x_test, y_test, writer=None):
103103

104104
time_str = datetime.datetime.now().isoformat()
105105
cur_epoch = step * batch_size / len(x_train)
106-
print("{}: Step {}, Epoch {:.2f}, Loss {:g}, Accuracy {:g}".format(time_str, step, cur_epoch, loss,
107-
accuracy))
106+
print("{}: Step {}, Epoch {:.2f} / {}, Loss {:g}, Accuracy {:g}".format(time_str, step, cur_epoch,
107+
num_epochs, loss, accuracy))
108108

109109
summary = tf.Summary()
110110
summary.value.add(tag="loss_1", simple_value=loss)

0 commit comments

Comments
 (0)