def clone(orig, n):
if n == <NUM_LIT:0>:<EOL><INDENT>return layerize(noop())<EOL><DEDENT>layers = [orig]<EOL>for i in range(n - <NUM_LIT:1>):<EOL><INDENT>layers.append(copy.deepcopy(orig))<EOL>layers[-<NUM_LIT:1>].set_id()<EOL><DEDENT>return FeedForward(layers)<EOL>
Construct `n` copies of a layer, with distinct weights.

    i.e. `clone(f, 3)(x)` computes `f(f'(f''(x)))`.