





"""simple docstring"""





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


_UpperCamelCase					      =   logging.get_logger(__name__)

_UpperCamelCase					      =   {
    '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 		SCREAMING_SNAKE_CASE_				(     snake_case__ ):
				"""simple docstring"""
				__snake_case :							List[str]									=		"""dpr"""




				def __init__(  self	:Tuple    ,     __lowercase	:Dict=3_0522    ,     __lowercase	:str=768    ,     __lowercase	:Union[str, Any]=12    ,     __lowercase	:Union[str, Any]=12    ,     __lowercase	:Tuple=3072    ,     __lowercase	:List[str]="gelu"    ,     __lowercase	:str=0.1    ,     __lowercase	:Union[str, Any]=0.1    ,     __lowercase	:Optional[Any]=512    ,     __lowercase	:Tuple=2    ,     __lowercase	:Optional[int]=0.02    ,     __lowercase	:List[str]=1e-1_2    ,     __lowercase	:Tuple=0    ,     __lowercase	:List[Any]="absolute"    ,     __lowercase	:int = 0    ,     **__lowercase	:Tuple    ,     ):
											super().__init__(pad_token_id=__lowercase    ,     **__lowercase      )

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











"""simple docstring"""





from __future__ import annotations



def 					lowerCAmelCase_      (   SCREAMING_SNAKE_CASE							:				list[int | str] ):


							'''simple docstring'''







							create_state_space_tree(SCREAMING_SNAKE_CASE     ,    []     ,    0     ,    [0 for i in range(len(SCREAMING_SNAKE_CASE ) )] )



def 					lowerCAmelCase_      (   SCREAMING_SNAKE_CASE							:				list[int | str]     ,    SCREAMING_SNAKE_CASE							:				list[int | str]     ,    SCREAMING_SNAKE_CASE							:				int     ,    SCREAMING_SNAKE_CASE							:				list[int]     ,    ):


							'''simple docstring'''







							if index == len(SCREAMING_SNAKE_CASE ):
														print(SCREAMING_SNAKE_CASE )
														return

							for i in range(len(SCREAMING_SNAKE_CASE ) ):
														if not index_used[i]:
																					current_sequence.append(sequence[i] )
																					__lowerCamelCase   :   List[Any]       =True
																					create_state_space_tree(SCREAMING_SNAKE_CASE     ,    SCREAMING_SNAKE_CASE     ,    index + 1     ,    SCREAMING_SNAKE_CASE )
																					current_sequence.pop()
																					__lowerCamelCase   :   List[Any]       =False
_UpperCamelCase					      =   [3, 1, 2, 4]
generate_all_permutations(sequence)

_UpperCamelCase					      =   ["A", "B", "C"]
generate_all_permutations(sequence_a)




