This is happening because the mobilenet fully connected layer is not called fc. It is called classifier, so when you set mobilenet.fc to a sequential it just adds a completely new sequential. This new sequential however is useless because it is not registered in the forward function. To fix this just change the mobilenetv3.fc to mobilenetv3.classifier.