Is it possible to create a branch in a torch::nn::Sequential model?

I have a single torch::nn::Sequential object to which I am adding each layer of ResNet50 model. For example, the third module that I need to add to Sequential object should take the output of the first layer and not the second. Is this even possible? In essence can we create branches in the model? If yes, how?

Thank you