Last active
May 24, 2020 23:31
-
-
Save elumixor/e14bdc88af7add877d38e577ffb4f3c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def HVP(v): | |
return flat_grad(d_kl @ v, parameters, retain_graph=True) | |
search_dir = conjugate_gradient(HVP, g) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment