Let’s say I have two cov neural networks (network A and network B) where the architectures (network A has 19 layers and network B has 20 layers) are almost identical.
How could  I transfer the first five layers of weights/biases/optimizer from network A to network B?
I need some help with coding. Thanks.