nn.Module with 2 outputs in nn.Modulelist

I wonder if it’s possible to add an nn.Module with 2 outputs(means it has 2 return value in the ‘‘forward’’ function) into an nn.Sequential and specify that I want to treat the 2nd output of Module1 as the input of Module2???

Code:
nn.Sequential(
Module1,
Module2

Module1 has output1 and output2 I want to use output2 only to continue the process of forward propagation

)

This topic discusses workarounds, which might be applicable for your use case.

thanks for your reply! I will check the topic.