progress_bar#
Source code: tianshou/utils/progress_bar.py
- class DummyTqdm(total: int, **kwargs: Any)[source]#
Bases:
object
A dummy tqdm class that keeps stats but without progress bar.
It supports
__enter__
and__exit__
, update and a dummyset_postfix
, which is the interface that trainers use.Note
Using
disable=True
in tqdm config results in infinite loop, thus this class is created. See the discussion at #641 for details.