Initialize a new network from a sub-network

You could use some things from How to extract features of an image from a trained model