composition
Say it “f after g”
Apply g first, then f to the result: (f∘g)(x) = f(g(x)).
Example
A 3-layer network: data flows through f₁ first.
In code
f(g(x))nn.Sequential(g, f)Where you’ll see it in ML
A deep network is a composition of layers — this is why the chain rule matters.