Export to ONNX Advice

I am trying to export some code to ONNX:

Some layers (‘IntermediateLayer’) are outputting dictionaries:

…which ONNX export is complaining about (no aten::Dict support).

Any general advice on best next steps?

I will try replacing the dictionary with a list of tuples.

But I’d appreciate any other advice.