Sequential class in a nutshell just calls provided modules one by one
Add(3)(5) nn.Sequential. How it works?
class Add(nn.Module):
def __init__(self, value):
super().__init__()
self.value = value
def forward(self, x):
return x + self.value
calculator = nn.Sequential(
...
https://stackoverflow.com/questions/70754176/add35-nn-sequential-how-it-works

Seonglae Cho