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

[FIX] Copy `_grad_input_padding` from `torch==1.9`, update test #274

Closed f-dangel closed 1 year ago

f-dangel commented 1 year ago

The function was removed between torch 1.12.1 and torch 1.13. Reintroducing it should fix https://github.com/f-dangel/backpack/issues/272.