Skip to content

Commit

Permalink
removes useless print in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjgeorge committed Feb 3, 2024
1 parent 8a143d0 commit 4ce6305
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nngeometry/generator/jacobian/grads.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def flat_grad(cls, buffer, mod, layer, x, gy):
norm2 = (mod.weight**2).sum(dim=(1, 2, 3), keepdim=True) + mod.eps

gw = gw_prime / torch.sqrt(norm2).unsqueeze(0)
# print((gw_prime * mod.weight.unsqueeze(0)).sum(dim=(2,3,4), keepdim=True).size())
# print((mod.weight * norm2**(-1.5)).unsqueeze(0).size())

gw -= (gw_prime * mod.weight.unsqueeze(0)).sum(dim=(2, 3, 4), keepdim=True) * (
mod.weight * norm2 ** (-1.5)
Expand Down

0 comments on commit 4ce6305

Please sign in to comment.