I notice that we need to use this line to get a Module
from seriailized model for inference:
Module mod = (*tvm::runtime::Registry::Get("tvm.graph_runtime.create"))(
sjson, mod_dylib, device_type, device_id);
auto set_input = mod.GetFunction("set_input");
This would returns a pointer, thus I wonder if I need to explicitly free it module in my code, or would tvmruntime free that for me so that I do not need to take specially care about the resources ?