diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 7673b79f792f..a4b697255699 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11","3.12"] pytorch-channel: [pytorch, pytorch-nightly] include: # includes a single build on windows diff --git a/examples/mnist/mnist.py b/examples/mnist/mnist.py index 05c0a34bd2b3..8fb5a2c4ac6a 100644 --- a/examples/mnist/mnist.py +++ b/examples/mnist/mnist.py @@ -96,7 +96,7 @@ def log_validation_results(engine): @trainer.on(Events.EPOCH_COMPLETED | Events.COMPLETED) def log_time(engine): - tqdm.write(f"{trainer.last_event_name.name} took { trainer.state.times[trainer.last_event_name.name]} seconds") + tqdm.write(f"{trainer.last_event_name.name} took {trainer.state.times[trainer.last_event_name.name]} seconds") trainer.run(train_loader, max_epochs=epochs) pbar.close() diff --git a/requirements-dev.txt b/requirements-dev.txt index fb93bc61c486..bd5aca1f411c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,7 +23,9 @@ pynvml clearml scikit-image py-rouge -nltk +# temporary fix for python=3.12 and v3.8.1 +# nltk +git+https://github.com/nltk/nltk # Examples dependencies pandas gymnasium