Skip to content

[Cleanup] Remove redundant pbar initialization in examples #3522

@TahaZahid05

Description

@TahaZahid05

Hi there!

In mnist_with_tqdm_logger.py, and HandlersTimeProfiler_MNIST.ipynb there is a line explicitly setting pbar = 0 before the engine runs.

This initialization is redundant. The Ignite ProgressBar handler manages its own internal state and display logic. Removing these lines cleans up the example code and prevents potential confusion for users regarding manual state management of the progress bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions