Last active
October 22, 2017 20:15
-
-
Save yaroslavvb2/383dd9620476733de6eef5762282e4d4 to your computer and use it in GitHub Desktop.
This file contains 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
mode = 'capture' | |
loss.backward() | |
# invert | |
for i in range(n): | |
As_inv.append(regularized_inverse(As[i] @ As[i].t())) | |
Bs_inv.append(regularized_inverse(Bs[i] @ Bs[i].t())) | |
mode = 'kfac' | |
loss.backward() | |
optimizer.step() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment