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

Function count_parameters

experiments/exp_era5.py:122–123  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

120 return hparams
121
122def count_parameters(model):
123 return sum(p.numel() for p in model.parameters() if p.requires_grad)
124
125def fit(args):
126 positional_encoding_name = args.pe

Callers 1

fitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected