Target size that is different to the input size

It gives me error message: ‘object has no attribute ‘classifier’’, so what i i have to put as self.classifier? thanks