<p>At the time that I voted to close the question, I interpreted it as asking "Why does this code do this thing?" which is a programming question and hence off-topic.*</p>

<p>After conferring with some of the moderators, I came around to the understanding that the core of the question is really whether or not an "epoch" is a concept that is relevant to obtaining predictions from a neural network that has already been trained, and the code snippet is more-or-less a curiosity.</p>

<hr>

<p>* I've done a bit of work with TensorFlow but am by no means an expert and haven't ever used this function. I think that understanding why that code is written in that particular way and to what purpose would require asking the authors or a programming forum.</p>
