This feature can be used with any nn.Module-based model.