Skip to content

Commit

Permalink
[REQ] Require torch<1.13, test with 1.9.0 and 1.12.1
Browse files Browse the repository at this point in the history
torch 1.13 removed some internal functionality that BackPACK relied on,
see #272.
  • Loading branch information
f-dangel committed Oct 31, 2022
1 parent 0ab9421 commit d3d35bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
pytorch-version: [1.9.0, 1.9.1]
pytorch-version: [1.9.0, 1.12.1]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
Expand Down
2 changes: 1 addition & 1 deletion backpack/core/derivatives/basederivatives.py
Expand Up @@ -9,7 +9,7 @@
from backpack.core.derivatives import shape_check


class BaseDerivatives(ABC):
class BaseDerivatives(ABC): # noqa: B204
"""First- and second-order partial derivatives of unparameterized module.
Note:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -34,7 +34,7 @@ setup_requires =
setuptools_scm
# Dependencies of the project (semicolon/line-separated):
install_requires =
torch >= 1.9.0, < 2.0.0
torch >= 1.9.0, < 1.13.0
torchvision >= 0.7.0, < 1.0.0
einops >= 0.3.0, < 1.0.0
# Require a specific Python version, e.g. Python 2.7 or >= 3.4
Expand Down

0 comments on commit d3d35bc

Please sign in to comment.