How to deal with prim::DictConstruct

I try to compile a torchscript module with tvm, but there is an op named “prim::DictConstruct” , how to convert this kind of op to relay ir, any suggestion will be helpful

Relay doesn’t support a dictionary, so we cannot convert this op. If you are using huggingface, there is return_dict option that you can use, see Issue: Converting model from pytorch to relay model - #5 by popojames

Otherwise, if the dictionary is the output of your model, you can manually turn it into a tuple, like this:

thanks for the reply