diff --git a/examples/mnist/mnist_with_tqdm_logger.py b/examples/mnist/mnist_with_tqdm_logger.py index c0ca7934ec76..24d0eb9959f0 100644 --- a/examples/mnist/mnist_with_tqdm_logger.py +++ b/examples/mnist/mnist_with_tqdm_logger.py @@ -91,8 +91,6 @@ def log_validation_results(engine): f"Validation Results - Epoch: {engine.state.epoch} Avg accuracy: {avg_accuracy:.2f} Avg loss: {avg_nll:.2f}" ) - pbar.n = pbar.last_print_n = 0 - trainer.run(train_loader, max_epochs=epochs) diff --git a/examples/notebooks/HandlersTimeProfiler_MNIST.ipynb b/examples/notebooks/HandlersTimeProfiler_MNIST.ipynb index 2c4065dc6401..a911178d5a66 100644 --- a/examples/notebooks/HandlersTimeProfiler_MNIST.ipynb +++ b/examples/notebooks/HandlersTimeProfiler_MNIST.ipynb @@ -238,7 +238,6 @@ " )\n", " )\n", "\n", - " pbar.n = pbar.last_print_n = 0\n", "\n", "trainer.run(trainloader, max_epochs=10)" ],