Stack a layer on top of the former leaf of the net.
which layer to add to the net. It will be wired to the previous leaf.
optional optimizer to use for this layer.
current neural network with the newly added layer.
See Implementation
Stack a layer on top of the former leaf of the net.