Stack a layer on top of the former leaf of the net.
name to give to the layer
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.