the example above is as close as it gets to simply changing ModelA / ModelB with a ResNet / Densenet.
If you are doing a homework problem, I dont think we’re here to give you the exact solution and give you free points