I am using a pretrained mobilenet as follows :
model = torchvision.models.mobilenet_v2(pretrained=True)
model.children()
gives all the layers, including the last classification head.
However , model.features
gives all the layers excluding the classification head.
Why is this so? Are there any cases where both give the same result?
I would also be thankful if anyone pointed me to the PyTorch documentation for .features
(I couldn’t seem to find it).