nn.Sequental
won’t accept multiple inputs by default, but a few workarounds are posted in this topic with links to GitHub issues with more suggestions.
If these custom nn.Sequential
modifications don’t fit into your use case, I would recommend to write a custom nn.Module
and define the forward
method explicitly using both inputs.