This PR extends BackPACK's individual gradient extension and allows specifying the mini-batch samples for which the quantity will be extracted (#12), rather than evaluating individual gradients for every sample in the mini-batch.
Auxiliary:
Improve type annotations and code of abstract module extension class
Support sub-sampling in the test suite and reduce duplication
This PR extends BackPACK's individual gradient extension and allows specifying the mini-batch samples for which the quantity will be extracted (#12), rather than evaluating individual gradients for every sample in the mini-batch.
Auxiliary:
BatchGrad
tests usingpytest fixtures