Hi Folks, 
I’m trying to export a model to cpp via the tracing method (Following this 9 but with a more complex model), but running “torch.jit.trace(model, input_x)” fails with exception “TracedModules don’t support parameter sharing between modules”.
Unfortunately, there is no indication as to which modules or which parameters are shared. And I have no idea how to find out. How can I find out where it hangs?
(FYI, the module I’m trying to export is this one: Code on Github 17)
I’m grateful for any pointer towards a solution (I also tried the annotation method but also failed  I guess some of the model’s modules don’t support that).