



"""simple docstring"""

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


a_			   =					logging.get_logger(__name__)

a_			   =					{
    '''caidas/swin2sr-classicalsr-x2-64''': (
        '''https://huggingface.co/caidas/swin2sr-classicalsr-x2-64/resolve/main/config.json'''
    ),
}







class    __lowercase     (					__UpperCAmelCase):







						"""simple docstring"""







						_A		:							Optional[Any]							       =		"swin2sr"

						_A		:							str							       =		{
						    "hidden_size": "embed_dim",
						    "num_attention_heads": "num_heads",
						    "num_hidden_layers": "num_layers",
						}







						def __init__(self   ,		lowercase__=64   ,		lowercase__=1   ,		lowercase__=3   ,		lowercase__=1_80   ,		lowercase__=[6, 6, 6, 6, 6, 6]   ,		lowercase__=[6, 6, 6, 6, 6, 6]   ,		lowercase__=8   ,		lowercase__=2.0   ,		lowercase__=True   ,		lowercase__=0.0   ,		lowercase__=0.0   ,		lowercase__=0.1   ,		lowercase__="gelu"   ,		lowercase__=False   ,		lowercase__=0.02   ,		lowercase__=1e-5   ,		lowercase__=2   ,		lowercase__=1.0   ,		lowercase__="1conv"   ,		lowercase__="pixelshuffle"   ,		**lowercase__   ,		):
											super().__init__(**_lowerCamelCase       )

											snake_case_					:		Optional[Any] 					=					image_size
											snake_case_					:		Optional[int] 					=					patch_size
											snake_case_					:		Union[str, Any] 					=					num_channels
											snake_case_					:		List[str] 					=					embed_dim
											snake_case_					:		Tuple 					=					depths
											snake_case_					:		Any 					=					len(_lowerCamelCase       )
											snake_case_					:		Any 					=					num_heads
											snake_case_					:		Optional[int] 					=					window_size
											snake_case_					:		List[str] 					=					mlp_ratio
											snake_case_					:		Tuple 					=					qkv_bias
											snake_case_					:		List[Any] 					=					hidden_dropout_prob
											snake_case_					:		Union[str, Any] 					=					attention_probs_dropout_prob
											snake_case_					:		Any 					=					drop_path_rate
											snake_case_					:		List[str] 					=					hidden_act
											snake_case_					:		Optional[Any] 					=					use_absolute_embeddings
											snake_case_					:		Optional[int] 					=					layer_norm_eps
											snake_case_					:		Any 					=					initializer_range
											snake_case_					:		Union[str, Any] 					=					upscale
											snake_case_					:		Optional[int] 					=					img_range
											snake_case_					:		Optional[int] 					=					resi_connection
											snake_case_					:		List[str] 					=					upsampler








"""simple docstring"""

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


a_			   =					logging.get_logger(__name__)

a_			   =					{
    '''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     (					_UpperCAmelCase):







						"""simple docstring"""







						_A		:							Optional[int]							       =		"""dpr"""







						def __init__(self   ,		lowercase__=3_05_22   ,		lowercase__=7_68   ,		lowercase__=12   ,		lowercase__=12   ,		lowercase__=30_72   ,		lowercase__="gelu"   ,		lowercase__=0.1   ,		lowercase__=0.1   ,		lowercase__=5_12   ,		lowercase__=2   ,		lowercase__=0.02   ,		lowercase__=1e-12   ,		lowercase__=0   ,		lowercase__="absolute"   ,		lowercase__ = 0   ,		**lowercase__   ,		):
											super().__init__(pad_token_id=lowercase__   ,		**lowercase__       )

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




