Called at the end of a batch during prediction phase.
index of batch within the current epoch.
Number of samples in the current batch.