






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


lowerCamelCase : Dict						   =       logging.get_logger(__name__)

lowerCamelCase : 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 		lowerCAmelCase     ( lowercase__			):

					'''simple docstring'''

					_A						:			List[Any]									=      '''dpr'''



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


												"""simple docstring"""

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

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







import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


lowerCamelCase : Union[str, Any]						   =       logging.get_logger(__name__)

class 		lowerCAmelCase     ( __a			):

					'''simple docstring'''

					def __init__(  self				:	int		,     *__a				:	Dict		,     **__a				:	Optional[Any]							)			->  None:


												"""simple docstring"""

												warnings.warn(
												    """The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
												    """ use BeitImageProcessor instead."""		,     __a		,     )
												super().__init__(*__a		,     **__a							)