Estimated remaining time

How to get estimated remaining time for training a model in pytorch? In keras it shows automatically.
I have just started learning pytorch.

You can use tqdm. Install it using pip install tqdm

from tqdm import tqdm 
from tqdm.notebook import tqdm # better version for jupyter notebook

for i in tqdm(range(n_epochs), desc="Training: "): 
   # training code
1 Like

Thank you very much :smile: @hash-ir .

A good example for tqdm .

I am glad it helped. Please accept this as a solution if it worked for you!