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

Function dict2table

imperative/python/megengine/utils/module_stats.py:185–195  ·  view source on GitHub ↗
(list_of_dict, header)

Source from the content-addressed store, hash-verified

183
184
185def dict2table(list_of_dict, header):
186 table_data = [header]
187 for d in list_of_dict:
188 row = []
189 for h in header:
190 v = ""
191 if h in d:
192 v = d[h]
193 row.append(v)
194 table_data.append(row)
195 return table_data
196
197
198def sizeof_fmt(num, suffix="B"):

Callers 3

print_op_statsFunction · 0.85
print_param_statsFunction · 0.85
print_activations_statsFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected