MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / count_parameters_in_MB

Function count_parameters_in_MB

AutoML/darts-master/cnn/utils.py:82–83  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

80
81
82def count_parameters_in_MB(model):
83 return np.sum(np.prod(v.size()) for name, v in model.named_parameters() if "auxiliary" not in name)/1e6
84
85
86def save_checkpoint(state, is_best, save):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected