MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / count_parameters

Function count_parameters

utils/utils.py:44–45  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

42
43
44def count_parameters(model):
45 return sum(p.numel() for p in model.parameters() if p.requires_grad)

Callers 1

fitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected