Hi @max1996 ,
function metadata is of type :
`Map<String, FunctionInfo> function_metadata;`
When accessed via Python it functions as a dictionary :) .
struct FunctionInfoNode : public Object {
Map<Target, Integer> workspace_sizes;
Map<Target, Integer> io_sizes;
Map<Target, Integer> constant_sizes;
Map<Target, tir::PrimFunc> tir_primfuncs;
Map<Target, Function> relay_primfuncs;
A FunctionInfo structure should also be visible in Python and again it creates
Maps (dicts in Python) that maps for Target --> *various_info*.
Try printing the items, so you should see what I mean. Maybe using a code
snippet as follows :
func_metadata = lib.function_metadata
for func_name, finfo in func_metadata.items():
print(finfo.workspace_sizes.items())
print(finfo.tir_primfuncs.items())
---
[Visit
Topic](https://discuss.tvm.apache.org/t/measure-memory-allocation-using-debug-executor/9679/7)
to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.tvm.apache.org/email/unsubscribe/4fbfb4fc15337a2dcf7e0294180fcf198023d3562a3ec5a7e2d6f4e6da4e1b72).