Thanks, I think this question is subtly different, this is about why constant tensors aren’t represented as Const in relay. Whereas, my question relates to how to represent a Const value in codegen.
On a side note @trevor-m, you can achieve this with the BindParamsByName pass if you haven’t figured it out already. For example:
f = relay.build_module.bind_params_by_name(mod["main"], params)
mod = tvm.IRModule()
mod["main"] = f