f-dangel / backpack

BackPACK - a backpropagation package built on top of PyTorch which efficiently computes quantities other than the gradient.
https://backpack.pt/
MIT License
555 stars 55 forks source link

pytorch 1.13 support #272

Closed matthijsvk closed 1 year ago

matthijsvk commented 1 year ago
Traceback (most recent call last):
...
  File ".../backpack/core/derivatives/convnd.py", line 8, in <module>
    from torch.nn.grad import _grad_input_padding
ImportError: cannot import name '_grad_input_padding' from 'torch.nn.grad'

It seems like this function was removed between 1.12.1 and 1.13.

f-dangel commented 1 year ago

Hi, thanks for reporting this.

We're working on a hotfix to support PyTorch 1.13. For now, please use pip install torch<1.13 to prevent this compatibility issue.

f-dangel commented 1 year ago

As an update: The test suite is broken with torch==1.13.0 due to the following issue. Waiting for an answer from the PyTorch team before this can be resolved.