NetNestOperator
NetNestOperator[net, n] represents a net in which net is applied n times to the input.
This operator creates a network that iteratively applies the same network multiple times.
Examples
NetNestOperator[LinearLayer[5], 3]op = NetNestOperator[ElementwiseLayer[Tanh], 2];
op[{1, 2, 3}]NetNestOperator[NetChain[{LinearLayer[10], Ramp}], 4]*See the official Wolfram Language Reference for more details.