I was trying to convert my pytorch model to onnx but I am facing RuntimeError: Only tuples, lists and Variables are supported as JIT inputs/outputs. Dictionaries and strings are also accepted, but their usage is not recommended. Here, received an input of unsupported type: DGLHeteroGraph
Error
import torch.onnx
model.load_state_dict(state,strict=True)
dummy_input = [get_graph_from_smile(Chem.MolToSmiles(Chem.AddHs(Chem.MolFromSmiles('CC(C)(C)Br')))), get_graph_from_smile(Chem.MolToSmiles(Chem.AddHs(Chem.MolFromSmiles('CC(C)(C)Br'))))]
torch.onnx.export(model, dummy_input, "solubility.onnx")
I have kept the code which I am working, don't know where I am doing wrong