VDB
Sign up
MEDIUM5.3

PYSEC-2025-200

Quick fix

PYSEC-2025-200 — torch: upgrade to the fixed version with the command below.

pip install --upgrade 'torch>=2.7.0'

Details

In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/torch
Introduced in: 2.6.0Fixed in: 2.7.0
Fixpip install --upgrade 'torch>=2.7.0'

References