Skip to content

Commit

Permalink
Merge pull request #12 from tfjgeorge/get_n_params
Browse files Browse the repository at this point in the history
removes legacy function
  • Loading branch information
tfjgeorge committed Mar 3, 2021
2 parents 665c0b1 + 02ee956 commit 50c1e21
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nngeometry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import torch.nn.functional as F


def get_n_parameters(model):
return sum([p.numel() for p in model.parameters()])


def per_example_grad_conv(mod, x, gy):
ks = (mod.weight.size(2), mod.weight.size(3))
gy_s = gy.size()
Expand Down

0 comments on commit 50c1e21

Please sign in to comment.