Skip to content

Conversation

@akx
Copy link
Member

@akx akx commented Nov 12, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades PyTorch from version 2.5.0 to 2.8.0 and makes necessary code changes to accommodate the new version's requirements. The primary change involves explicitly setting the weights_only parameter in torch.load() calls, which became mandatory in newer PyTorch versions.

  • Updated PyTorch to 2.8.0 and torchvision to 0.23.0
  • Added weights_only=False parameter to torch.load() calls for data loading
  • Removed unused imports from train.py

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
requirements.txt Updated PyTorch version from 2.5.0 to 2.8.0 and torchvision from 0.20.1 to 0.23.0
train.py Removed unused imports (torchvision.datasets, zipfile) and added weights_only=False parameter to torch.load() calls with explanatory comments
eval.py Added weights_only=False parameter to torch.load() call for test data with explanatory comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akx akx merged commit f4a6c15 into master Dec 8, 2025
6 checks passed
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.

3 participants