Skip to content

Trying to fix the OOM in test_video_model on Windows CPU#9396

Merged
zy1git merged 3 commits into
pytorch:mainfrom
zy1git:windows-test-error
Feb 23, 2026
Merged

Trying to fix the OOM in test_video_model on Windows CPU#9396
zy1git merged 3 commits into
pytorch:mainfrom
zy1git:windows-test-error

Conversation

@zy1git
Copy link
Copy Markdown
Contributor

@zy1git zy1git commented Feb 20, 2026

Applied the fix because Windows CPU CI was failing with an OOM error during video model tests due to memory accumulating across tests.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Feb 20, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9396

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 0f01d9d with merge base d63f7ed (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the cla signed label Feb 20, 2026
@zy1git zy1git marked this pull request as draft February 20, 2026 09:36
Comment thread test/test_models.py
Comment on lines +954 to +955
del model, x, out
gc.collect()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That sounds OK as fix, thank. Please add a comment indicating why this is done. I.e. that the Windows CI was failing with a OOM error.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a comment to the file in the new commit.

@zy1git zy1git marked this pull request as ready for review February 23, 2026 16:21
@zy1git zy1git merged commit 359f8bd into pytorch:main Feb 23, 2026
62 checks passed
@github-actions
Copy link
Copy Markdown

Hey @zy1git!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants