Could you post the complete stack trace as well as an executable code snippet so that we could have a look?
Based on the error you might either be passing 2 inputs to the nn.Sequential container or an intermediate layer returns 2 outputs, which are not accepted by the last layer. The latter issue might happen, if the original model was handling multiple outputs/inputs in the forward method, while the nn.Sequential container isn’t able to do so directly.