Skip to content

Commit

Permalink
cycleTime no longer needed after adding report callback
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fri-end committed Jun 22, 2021
1 parent cf9a695 commit c8adf45
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mnist_vae_cnn/mnist_vae_cnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ int main()
true);

const clock_t beginTime = clock();
clock_t cycleTime = beginTime;

// Cycles for monitoring the progress.
for (int i = 0; i < cycles; i++)
{
Expand All @@ -230,9 +228,6 @@ int main()

std::cout << "Loss after cycle " << i << " -> " <<
MeanTestLoss<MeanSModel>(vaeModel, trainTest, batchSize) << std::endl;
std::cout << "Time taken for cycle -> " << float(clock() - cycleTime) /
CLOCKS_PER_SEC << " seconds" << std::endl;
cycleTime = clock();
}

std::cout << "Time taken to train -> " << float(clock() - beginTime) /
Expand Down

0 comments on commit c8adf45

Please sign in to comment.