Skip to content

Commit ddb7fc2

Browse files
authored
Merge pull request #272 from arisliang/master
log total epoch as well to better indicate the training progress.
2 parents bf30a18 + b2ac27e commit ddb7fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def train(self, config):
273273
errG = self.g_loss.eval({self.z: batch_z})
274274

275275
counter += 1
276-
print("Epoch: [%2d] [%4d/%4d] time: %4.4f, d_loss: %.8f, g_loss: %.8f" \
277-
% (epoch, idx, batch_idxs,
276+
print("Epoch: [%2d/%2d] [%4d/%4d] time: %4.4f, d_loss: %.8f, g_loss: %.8f" \
277+
% (epoch, config.epoch, idx, batch_idxs,
278278
time.time() - start_time, errD_fake+errD_real, errG))
279279

280280
if np.mod(counter, 100) == 1:

0 commit comments

Comments
 (0)