src/transformers/models/dpr/modeling_tf_dpr.py/TFDPREncoderLayer/embeddings_size
class TFDPREncoderLayer:    def embeddings_size(self) -> int:
        if self.projection_dim > 0:
            return self.projection_dim
        return self.bert_model.config.hidden_size