Would you like to “concatenate” them such that the output of model1
would be passed to model2
in a sequential way? If so, then you might be able to create a new custom nn.Module
, use both of the scripted models there, and script the new “parent model” again (if needed).
Let me know, if I misunderstood your question.