normal-computing / posteriors

Uncertainty quantification with PyTorch
https://normal-computing.github.io/posteriors/
Apache License 2.0
282 stars 12 forks source link

Add `ggn` and `ggnvp` #75

Closed SamDuffield closed 2 months ago

SamDuffield commented 2 months ago

Discussed in #63

So far I've added ggnvp for vector products. It should be fairly straightforward to add ggn too now.

Might want to consider setting normalize=False and mention that normalize=True assumes that the first dimension of the output of the jvp is batchsize (or dimension or desired normalisation).