
'''simple docstring'''







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


lowercase					:							Any   =      logging.get_logger(__name__)

lowercase					:							int   =      {
    "facebook/timesformer": "https://huggingface.co/facebook/timesformer/resolve/main/config.json",
}


class 		__UpperCAmelCase   (      _lowerCamelCase		):
							__lowercase   	= """timesformer"""


							def __init__( self					,     lowerCAmelCase_=2_24					,     lowerCAmelCase_=16					,     lowerCAmelCase_=3					,     lowerCAmelCase_=8					,     lowerCAmelCase_=7_68					,     lowerCAmelCase_=12					,     lowerCAmelCase_=12					,     lowerCAmelCase_=30_72					,     lowerCAmelCase_="gelu"					,     lowerCAmelCase_=0.0					,     lowerCAmelCase_=0.0					,     lowerCAmelCase_=0.02					,     lowerCAmelCase_=1E-6					,     lowerCAmelCase_=True					,     lowerCAmelCase_="divided_space_time"					,     lowerCAmelCase_=0					,     **lowerCAmelCase_					,     ):





								"""simple docstring"""






								super().__init__(**lowerCAmelCase_						)

								_snake_case     		=	image_size
								_snake_case     		=	patch_size
								_snake_case     		=	num_channels
								_snake_case     		=	num_frames

								_snake_case     		=	hidden_size
								_snake_case     		=	num_hidden_layers
								_snake_case     		=	num_attention_heads
								_snake_case     		=	intermediate_size
								_snake_case     		=	hidden_act
								_snake_case     		=	hidden_dropout_prob
								_snake_case     		=	attention_probs_dropout_prob
								_snake_case     		=	initializer_range
								_snake_case     		=	layer_norm_eps
								_snake_case     		=	qkv_bias

								_snake_case     		=	attention_type
								_snake_case     		=	drop_path_rate



'''simple docstring'''







lowercase					:							Tuple   =      {
    "a": "AAAAA",
    "b": "AAAAB",
    "c": "AAABA",
    "d": "AAABB",
    "e": "AABAA",
    "f": "AABAB",
    "g": "AABBA",
    "h": "AABBB",
    "i": "ABAAA",
    "j": "BBBAA",
    "k": "ABAAB",
    "l": "ABABA",
    "m": "ABABB",
    "n": "ABBAA",
    "o": "ABBAB",
    "p": "ABBBA",
    "q": "ABBBB",
    "r": "BAAAA",
    "s": "BAAAB",
    "t": "BAABA",
    "u": "BAABB",
    "v": "BBBAB",
    "w": "BABAA",
    "x": "BABAB",
    "y": "BABBA",
    "z": "BABBB",
    " ": " ",
}


lowercase					:							Union[str, Any]   =      {value: key for key, value in encode_dict.items()}







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			str:
	_snake_case     		=	''
	for letter in word.lower():
		if letter.isalpha() or letter == " ":
			encoded += encode_dict[letter]
		else:
			raise Exception('encode() accepts only letters of the alphabet and spaces'			)
	return encoded







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			str:
	if set(__A			) - {"A", "B", " "} != set():
		raise Exception('decode() accepts only \'A\', \'B\' and spaces'			)
	_snake_case     		=	''
	for word in coded.split():
		while len(__A			) != 0:
			decoded += decode_dict[word[:5]]
			_snake_case     		=	word[5:]
		decoded += " "
	return decoded.strip()


if __name__ == "__main__":
					from doctest import testmod

					testmod()

