https://pytorch.org/docs/stable/generated/torch.nn.Sequentia...
The point about the better API overall still stands (notably including the actual training part, as base PyTorch requires you to implement your own loop)