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.
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.
It seems like this function was removed between 1.12.1 and 1.13.