The posted code wouldn’t work with torchvision.models.resnet34, since fc_1, fc_2, etc. are newly created attributes and thus never used in the original forward method unless you override it (which isn’t shown in the code).
Also, feature_extractor is undefined, so I’m unsure how it relates to the previously created model.
Could you post a minimal, executable code snippet to reproduce the issue?