MCPcopy Index your code
hub / github.com/CompVis/diff2flow / count_params

Function count_params

diff2flow/helpers.py:114–115  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

112
113
114def count_params(model):
115 return sum(p.numel() for p in model.parameters() if p.requires_grad)
116
117
118def timer(start, end):

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected