Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
114
def
count_params(model):
115
return
sum(p.numel()
for
p in model.parameters()
if
p.requires_grad)
116
117
118
def
timer(start, end):
Callers
1
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected