I cant seem to find it in the PyTorch documentation anywhere, however it seems to exist here? (https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/container.py)
It seems that is hasn’t been added to the docs. I’ll do that when I’ll be sending some for
ModuleList. Thanks for the report!
Thanks @apaszke, the reason I am asking is because I am trying to add a “reshape” operation in an nn.Sequential instance but I am not quite sure now that is supposed to be done? Thanks!
We recommend implementing custom containers if you need anything more complex than passing the data forward (including reshaping). See how torchvision models are implemented.
Sequential docs are now added