


from ...configuration_utils import PretrainedConfig
from ...utils import logging


A   :					Dict	=      logging.get_logger(__name__)

A   :					Dict	=      {
    "facebook/dpr-ctx_encoder-single-nq-base": (
        "https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base/resolve/main/config.json"
    ),
    "facebook/dpr-question_encoder-single-nq-base": (
        "https://huggingface.co/facebook/dpr-question_encoder-single-nq-base/resolve/main/config.json"
    ),
    "facebook/dpr-reader-single-nq-base": (
        "https://huggingface.co/facebook/dpr-reader-single-nq-base/resolve/main/config.json"
    ),
    "facebook/dpr-ctx_encoder-multiset-base": (
        "https://huggingface.co/facebook/dpr-ctx_encoder-multiset-base/resolve/main/config.json"
    ),
    "facebook/dpr-question_encoder-multiset-base": (
        "https://huggingface.co/facebook/dpr-question_encoder-multiset-base/resolve/main/config.json"
    ),
    "facebook/dpr-reader-multiset-base": (
        "https://huggingface.co/facebook/dpr-reader-multiset-base/resolve/main/config.json"
    ),
}







class     _lowercase				(							lowercase__):


       """simple docstring"""




       A__      		=    "dpr"





       def __init__(     self							:    str      ,   __lowerCamelCase							:    List[str]=30522      ,   __lowerCamelCase							:    Optional[Any]=768      ,   __lowerCamelCase							:    int=12      ,   __lowerCamelCase							:    Tuple=12      ,   __lowerCamelCase							:    Any=3072      ,   __lowerCamelCase							:    str="gelu"      ,   __lowerCamelCase							:    Dict=0.1      ,   __lowerCamelCase							:    Tuple=0.1      ,   __lowerCamelCase							:    int=512      ,   __lowerCamelCase							:    Dict=2      ,   __lowerCamelCase							:    Union[str, Any]=0.0_2      ,   __lowerCamelCase							:    Any=1E-1_2      ,   __lowerCamelCase							:    Optional[Any]=0      ,   __lowerCamelCase							:    Tuple="absolute"      ,   __lowerCamelCase							:    int = 0      ,   **__lowerCamelCase							:    Tuple      ,   ):


             '''simple docstring'''



             super().__init__(pad_token_id=__lowerCamelCase      ,   **__lowerCamelCase )

             lowerCamelCase__	:       Dict					=						vocab_size
             lowerCamelCase__	:       List[str]					=						hidden_size
             lowerCamelCase__	:       str					=						num_hidden_layers
             lowerCamelCase__	:       List[Any]					=						num_attention_heads
             lowerCamelCase__	:       Tuple					=						hidden_act
             lowerCamelCase__	:       List[str]					=						intermediate_size
             lowerCamelCase__	:       str					=						hidden_dropout_prob
             lowerCamelCase__	:       str					=						attention_probs_dropout_prob
             lowerCamelCase__	:       int					=						max_position_embeddings
             lowerCamelCase__	:       int					=						type_vocab_size
             lowerCamelCase__	:       Union[str, Any]					=						initializer_range
             lowerCamelCase__	:       str					=						layer_norm_eps
             lowerCamelCase__	:       List[Any]					=						projection_dim
             lowerCamelCase__	:       Optional[Any]					=						position_embedding_type






def    lowercase_	(	_A    :					int		):

      """simple docstring"""




      if not isinstance(_A					,      _A		):
            lowerCamelCase__	:       List[str]					=						F"Input value of [number={number}] must be an integer"
            raise TypeError(_A		)
      if number < 0:
            return False
      lowerCamelCase__	:       Dict					=						number * number
      while number > 0:
            if number % 10 != number_square % 10:
                  return False
            number //= 10
            number_square //= 10
      return True


if __name__ == "__main__":
    import doctest

    doctest.testmod()


