Search notes:

torch.nn.Sequential

Instances of torch.nn.Sequential are container that store an ordered set of (sub-)modules.
The forward() method of torch.nn.Sequential() passes its argument to the first submodule, then passes the submodules output to the second submodule etc. and finally returns the output of the last submodule.
torch.nn.Sequential inherits from torch.nn.Module.

See also

torch.nn.ModuleList
torch.nn.Module
torch.nn.Flatten

Index