N = data_set.num_examples
eval_args = self._get_eval_args(epoch)
data_set.reset(shuffle=False)
string = "eval on {}, N={}|".format(data_set.name, N)
for _ in mytqdm(range(num_iters), desc=string, show=progress):
batches = []
for _ in range(self.num_towers):
if data_set.has_next_batch(partial=True):
After Change
eval_args = self._get_eval_args(epoch)
string = "eval on %s, N=%d|" % (data_set.name, N)
if progress:
pbar = get_pbar(num_iters, prefix=string).start()
for iter_idx in range(num_iters):
batches = []
for _ in range(self.num_towers):
if data_set.has_next_batch(partial=True):