MCPcopy Create free account
hub / github.com/SooLab/CGFormer / count_parameters

Function count_parameters

tools/latency.py:34–35  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

32
33
34def count_parameters(model):
35 return sum(p.numel() for p in model.parameters() if p.requires_grad)
36
37
38def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected