mindquantum.utils.SingleLoopProgress
- class mindquantum.utils.SingleLoopProgress(n_loop: int, loop_name: str = 'Task')[source]
A progress bar of task with single level for loop.
- Parameters
Examples
>>> import time >>> from mindquantum.utils import SingleLoopProgress >>> with SingleLoopProgress(100) as progress: >>> for batch in range(100): >>> progress.update_loop(batch) >>> time.sleep(0.01)