MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / print_param_stats

Function print_param_stats

imperative/python/megengine/utils/module_stats.py:337–353  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

335
336
337def print_param_stats(params):
338 header = [
339 "name",
340 "dtype",
341 "shape",
342 "mean",
343 "std",
344 "param_dim",
345 "nbits",
346 "size",
347 "size_cum",
348 "percentage",
349 "size_bar",
350 ]
351 logger.info(
352 "param stats: \n" + tabulate.tabulate(dict2table(params, header=header))
353 )
354
355
356def get_activation_stats(output: Tensor, has_input=False):

Callers 2

visualizeFunction · 0.90
module_statsFunction · 0.85

Calls 2

dict2tableFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected