Sequential — PyTorch 1.10.1 documentation
pytorch.org › generated › torchSequential¶ class torch.nn. Sequential (* args) [source] ¶ A sequential container. Modules will be added to it in the order they are passed in the constructor. Alternatively, an OrderedDict of modules can be passed in. The forward() method of Sequential accepts any input and forwards it to the first module it contains. It then “chains ...