Skip to content

Commit

Permalink
Fixing #11
Browse files Browse the repository at this point in the history
Apparently a version change bug!
  • Loading branch information
adavoudi authored May 3, 2020
1 parent 3c4e3f9 commit 2a15e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spdnet/spd.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def backward(ctx, grad_output):

max_mask = s > epsilon
s_max_diag = s.clone(); s_max_diag[~max_mask] = epsilon; s_max_diag = s_max_diag.diag()
Q = max_mask.diag().float()
Q = max_mask.float().diag()

dLdV = 2*(g.mm(u.mm(s_max_diag)))
dLdS = eye * (Q.mm(u.t().mm(g.mm(u))))
Expand Down

0 comments on commit 2a15e90

Please sign in to comment.