• Docs >
  • Utils >
  • torchtnt.utils.progress.estimated_steps_in_loop
Shortcuts

torchtnt.utils.progress.estimated_steps_in_loop

torchtnt.utils.progress.estimated_steps_in_loop(dataloader: Iterable[object], *, max_steps: Optional[int], max_steps_per_epoch: Optional[int], epochs: Optional[int]) Optional[int]

Estimate the total number of steps for the current loop.

A return value of None indicates that the number of steps couldn’t be estimated.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources