Skip to content

Use pre-generated TorchScript fixture to avoid torch.jit deprecation warnings#254

Merged
thomas-chauchefoin-tob merged 2 commits into
masterfrom
use-torchscript-fixtures
Jun 25, 2026
Merged

Use pre-generated TorchScript fixture to avoid torch.jit deprecation warnings#254
thomas-chauchefoin-tob merged 2 commits into
masterfrom
use-torchscript-fixtures

Conversation

@thomas-chauchefoin-tob

Copy link
Copy Markdown
Collaborator

PyTorch 2.10.0 fixed torch.jit.script and torch.jit.save for Python 3.14+ so we can enforce all tests now, but they now emit DeprecationWarnings and support will be removed in future PyTorch releases. Replace runtime JIT calls in test setUp with a pre-generated (smaller) fixture file, and include a standalone script (test/fixtures/generate_fixtures.py) to regenerate it with pinned versions of torch and torchvision.

Comment thread test/fixtures/generate_fixtures.py Fixed
thomas-chauchefoin-tob and others added 2 commits June 25, 2026 11:55
…warnings

torch.jit.script/torch.jit.save emit DeprecationWarnings on Python 3.14+
and may be removed in a future PyTorch release. Replace runtime JIT calls
in test setUp with a pre-generated (smaller) fixture file, and include a
standalone script (test/fixtures/generate_fixtures.py) to regenerate it
with pinned versions of torch and torchvision.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@thomas-chauchefoin-tob thomas-chauchefoin-tob merged commit 891d2a9 into master Jun 25, 2026
11 checks passed
@thomas-chauchefoin-tob thomas-chauchefoin-tob deleted the use-torchscript-fixtures branch June 25, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant