MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / count_model_parameters

Function count_model_parameters

train_eval_vimogen.py:36–38  ·  view source on GitHub ↗
(model: nn.Module)

Source from the content-addressed store, hash-verified

34
35
36def count_model_parameters(model: nn.Module):
37 params = sum([np.prod(p.size()) for p in model.parameters()])
38 return params
39
40
41def sample_data(loader, sampler, start_epoch, start_iter):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected