    def base_model(self):
        """
        PretrainedModel: The body of the same model architecture. It is the base
            model itself for base model or the base model attribute for derived
            model.
        """
        return getattr(self, self.base_model_prefix, self)
PretrainedModel: The body of the same model architecture. It is the base
model itself for base model or the base model attribute for derived
model.
ptstructure/vqa/pytorchnlp/transformers/model_utils.py