





"""simple docstring"""





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


lowerCAmelCase__     			=			logging.get_logger(__name__)

lowerCAmelCase__     			=			{
    'facebook/timesformer': 'https://huggingface.co/facebook/timesformer/resolve/main/config.json',
}





class        _lowerCamelCase      (       __lowercase ):
						UpperCAmelCase_ =			"timesformer"


						def __init__(self   ,							__a=2_24   ,							__a=16   ,							__a=3   ,							__a=8   ,							__a=7_68   ,							__a=12   ,							__a=12   ,							__a=30_72   ,							__a="gelu"   ,							__a=0.0   ,							__a=0.0   ,							__a=0.02   ,							__a=1e-6   ,							__a=True   ,							__a="divided_space_time"   ,							__a=0   ,							**__a   ,							) ->   List[Any]:
								super().__init__(**__a		)

								UpperCamelCase   =	image_size
								UpperCamelCase   =	patch_size
								UpperCamelCase   =	num_channels
								UpperCamelCase   =	num_frames

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

								UpperCamelCase   =	attention_type
								UpperCamelCase   =	drop_path_rate













"""simple docstring"""





def       a__					(					_SCREAMING_SNAKE_CASE    ):




		"""simple docstring"""


		UpperCamelCase   =	0
		for ch in input_str:
				UpperCamelCase   =	ord(_SCREAMING_SNAKE_CASE    )
				UpperCamelCase   =	pow(2  ,	_SCREAMING_SNAKE_CASE    )

				# If we already turned on bit for current character's unicode
				if bitmap >> ch_unicode & 1 == 1:
						return False
				bitmap |= ch_bit_index_on
		return True


if __name__ == "__main__":
						import doctest

						doctest.testmod()






