model.features is defined inside the model’s __init__ method and thus not a general attribute of nn.Modules.
Depending how you are designing your model you might want to create certain “blocks” e.g. features, classifier etc. In autoencoder-like models you would most likely find a model.encoder and model.decoder attribute.