Well in the code you posted, the model is comprised of a feature extractor and a classifier. The classifier has x = self.softmax(x) as the final function. Without seeing the actual code you’re using I can’t help much, and I’m not going to debug your entire script