def start(self):
        """
        Start testing with a progress bar.
        """
        self.ds.reset_state()
        itr = self.ds.__iter__()
        if self.warmup:
            for _ in tqdm.trange(self.warmup, **get_tqdm_kwargs()):
                next(itr)
        # add smoothing for speed benchmark
        with get_tqdm(total=self.test_size,
                      leave=True, smoothing=0.2) as pbar:
            for idx, dp in enumerate(itr):
                pbar.update()
                if idx == self.test_size - 1:
                    break
def start ( self ) : self . ds . reset_state ( ) itr = self . ds . __iter__ ( ) if self . warmup : for _ in tqdm . trange ( self . warmup , ** get_tqdm_kwargs ( ) ) : next ( itr ) with get_tqdm ( total = self . test_size , leave = True , smoothing = 0.2 ) as pbar : for idx , dp in enumerate ( itr ) : pbar . update ( ) if idx == self . test_size - 1 : break
Start testing with a progress bar.