Skip to content

torch.load fix for all pytorch versions.#554

Merged
manujosephv merged 3 commits into
pytorch-tabular:mainfrom
ArozHada:main
Mar 30, 2025
Merged

torch.load fix for all pytorch versions.#554
manujosephv merged 3 commits into
pytorch-tabular:mainfrom
ArozHada:main

Conversation

@ArozHada
Copy link
Copy Markdown
Contributor

@ArozHada ArozHada commented Mar 27, 2025

This PR fixes the torch.load() bug for pytorch versions < 2.6 from the PR #543. The test cases for older versions of Python and by extension PyTorch were failing cause of the new change. see here

What this PR updates?
Catches pytorch version and uses the correct syntax for torch.load() to use in
tabular_datamodule.py and python_ultis.py


📚 Documentation preview 📚: https://pytorch-tabular--554.org.readthedocs.build/en/554/

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 27, 2025
@ArozHada ArozHada closed this Mar 27, 2025
@ArozHada ArozHada reopened this Mar 27, 2025
@manujosephv manujosephv merged commit 155f29b into pytorch-tabular:main Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants