Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/drinkingcoder/FlowFormer-Official
/ count_parameters
Function
count_parameters
train_FlowFormer.py:53–54 ·
view source on GitHub ↗
(model)
Source
from the content-addressed store, hash-verified
51
52
53
def
count_parameters(model):
54
return
sum(p.numel()
for
p in model.parameters()
if
p.requires_grad)
55
56
def
train(cfg):
57
model = nn.DataParallel(build_flowformer(cfg))
Callers
1
train
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected