Just do the following:
model = torchvision.models.resnet18(pretrained=True)
num_ftrs = model.fc.in_features
model.fc = DCL() #feed your class of the model

EDIT:
Sorry you want layers after layer 4:
model.state_dict()

And filter layers in dict that you need.