Would you like to get the weigths for a particular class from the last linear layer?
If so, you could use:
in_features = 32
nb_classes = 10
lin = nn.Linear(in_features, nb_classes)
# print weight and bias for class0
print(lin.weight[0], lin.bias[0])

There wouldn’t be an easy way to extract “all parameters” for a specific class, since the preceding layers would be completely used (in case of linear layers) for all classes.