I would, if Net_k[-1] returns the last layer, e.g. if it’s defined as an nn.Sequential module. However, if you are using a custom nn.Module, you would need to access the last layer directly via model.last_layer_name.parameters(),