MCPcopy 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
53def count_parameters(model):
54 return sum(p.numel() for p in model.parameters() if p.requires_grad)
55
56def train(cfg):
57 model = nn.DataParallel(build_flowformer(cfg))

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected