





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


__A									=				logging.get_logger(__name__)

__A									=				{
    "facebook/vit-mae-base": "https://huggingface.co/facebook/vit-mae-base/resolve/main/config.json",
    # See all ViT MAE models at https://huggingface.co/models?filter=vit-mae
}



class    _SCREAMING_SNAKE_CASE						(	__SCREAMING_SNAKE_CASE    ):







 '''simple docstring'''
 lowercase_		=			"vit_mae"

 def __init__(self				:   int       , UpperCAmelCase_				:   List[Any]=768       , UpperCAmelCase_				:   Optional[Any]=12       , UpperCAmelCase_				:   Tuple=12       , UpperCAmelCase_				:   int=3_072       , UpperCAmelCase_				:   Union[str, Any]="gelu"       , UpperCAmelCase_				:   Union[str, Any]=0.0       , UpperCAmelCase_				:   Tuple=0.0       , UpperCAmelCase_				:   Optional[Any]=0.02       , UpperCAmelCase_				:   List[Any]=1E-1_2       , UpperCAmelCase_				:   Any=224       , UpperCAmelCase_				:   List[str]=16       , UpperCAmelCase_				:   Optional[int]=3       , UpperCAmelCase_				:   List[str]=True       , UpperCAmelCase_				:   Dict=16       , UpperCAmelCase_				:   str=512       , UpperCAmelCase_				:   List[Any]=8       , UpperCAmelCase_				:   List[str]=2_048       , UpperCAmelCase_				:   Dict=0.75       , UpperCAmelCase_				:   Tuple=False       , **UpperCAmelCase_				:   str       , )       ->List[str]:



   '''simple docstring'''



   super().__init__(**UpperCAmelCase_)

   lowerCamelCase__:      Union[str, Any]			  =hidden_size
   lowerCamelCase__:      int			  =num_hidden_layers
   lowerCamelCase__:      str			  =num_attention_heads
   lowerCamelCase__:      int			  =intermediate_size
   lowerCamelCase__:      str			  =hidden_act
   lowerCamelCase__:      Optional[int]			  =hidden_dropout_prob
   lowerCamelCase__:      int			  =attention_probs_dropout_prob
   lowerCamelCase__:      Dict			  =initializer_range
   lowerCamelCase__:      int			  =layer_norm_eps
   lowerCamelCase__:      List[str]			  =image_size
   lowerCamelCase__:      Optional[Any]			  =patch_size
   lowerCamelCase__:      Any			  =num_channels
   lowerCamelCase__:      Optional[Any]			  =qkv_bias
   lowerCamelCase__:      List[str]			  =decoder_num_attention_heads
   lowerCamelCase__:      List[Any]			  =decoder_hidden_size
   lowerCamelCase__:      str			  =decoder_num_hidden_layers
   lowerCamelCase__:      List[Any]			  =decoder_intermediate_size
   lowerCamelCase__:      Optional[int]			  =mask_ratio
   lowerCamelCase__:      Optional[int]			  =norm_pix_loss





"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     str = "The quick brown fox jumps over the lazy dog"    ,					) ->      bool:
		__a           =			set()

		# Replace all the whitespace in our sentence
		__a           =			input_str.replace(''' '''    ,					''''''			)
		for alpha in input_str:
				if "a" <= alpha.lower() <= "z":
						frequency.add(alpha.lower()			)
		return len(lowerCAmelCase__			) == 26

def        lowercase							(		lowerCAmelCase__ :     str = "The quick brown fox jumps over the lazy dog"    ,					) ->      bool:
		__a           =			[False] * 26
		for char in input_str:
				if char.islower():
						__a           =			True
				elif char.isupper():
						__a           =			True
		return all(lowerCAmelCase__			)

def        lowercase							(		lowerCAmelCase__ :     str = "The quick brown fox jumps over the lazy dog"    ,					) ->      bool:
		return len({char for char in input_str.lower() if char.isalpha()}			) == 26

def        lowercase							(		) ->      None:
		from timeit import timeit

		__a           =			'''from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest'''
		print(timeit('''is_pangram()'''    ,					setup=lowerCAmelCase__			)			)
		print(timeit('''is_pangram_faster()'''    ,					setup=lowerCAmelCase__			)			)
		print(timeit('''is_pangram_fastest()'''    ,					setup=lowerCAmelCase__			)			)
		# 5.348480500048026, 2.6477354579837993, 1.8470395830227062
		# 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				benchmark()






