I guess the model attribute is added, as it seems you are using another class to store your self.model, self.optimizer and probably other objects.
Are you working with some high-level API or did you create this wrapper manually?