






"""simple docstring"""







import argparse


__a       :	int             = 'docs/source/_static/js/custom.js'





def        SCREAMING_SNAKE_CASE       (      lowerCamelCase_):
					with open(lowerCamelCase_ ,     encoding='''utf-8''' ,     newline='''\n''') as f:
										a__          =  f.readlines()
					a__          =  0

					# First let's put the right version
					while not lines[index].startswith('''const stableVersion ='''):
										index += 1
					a__          =  f'const stableVersion = "v{version}"\n'

					# Then update the dictionary
					while not lines[index].startswith('''const versionMapping = {'''):
										index += 1

					# We go until the end
					while not lines[index].startswith('''}'''):
										index += 1
					# We add the new version at the end
					lines[index - 1] += f'    "v{version}": "v{version}",\n'

					with open(lowerCamelCase_ ,     '''w''' ,     encoding='''utf-8''' ,     newline='''\n''') as f:
										f.writelines(lowerCamelCase_)


if __name__ == "__main__":
	__a       :	Optional[int]             = argparse.ArgumentParser()
	parser.add_argument('--version', help='Release version.')
	__a       :	Optional[Any]             = parser.parse_args()
	update_custom_js(args.version)










"""simple docstring"""







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


__a       :	List[str]             = logging.get_logger(__name__)

__a       :	int             = {
    '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						(  __snake_case							):





							"""simple docstring"""





							_SCREAMING_SNAKE_CASE    ='vit_mae'




							def __init__(   self:     str				,		__A:     str=768				,		__A:     Union[str, Any]=12				,		__A:     str=12				,		__A:     List[Any]=3072				,		__A:     List[Any]="gelu"				,		__A:     Union[str, Any]=0.0				,		__A:     Tuple=0.0				,		__A:     str=0.0_2				,		__A:     Tuple=1e-12				,		__A:     Dict=224				,		__A:     List[Any]=16				,		__A:     Tuple=3				,		__A:     str=True				,		__A:     Optional[Any]=16				,		__A:     List[Any]=512				,		__A:     Optional[Any]=8				,		__A:     Dict=2048				,		__A:     str=0.7_5				,		__A:     str=False				,		**__A:     Tuple				,		):

												'''simple docstring'''

												super().__init__(**__A    )

												a__          =  hidden_size
												a__          =  num_hidden_layers
												a__          =  num_attention_heads
												a__          =  intermediate_size
												a__          =  hidden_act
												a__          =  hidden_dropout_prob
												a__          =  attention_probs_dropout_prob
												a__          =  initializer_range
												a__          =  layer_norm_eps
												a__          =  image_size
												a__          =  patch_size
												a__          =  num_channels
												a__          =  qkv_bias
												a__          =  decoder_num_attention_heads
												a__          =  decoder_hidden_size
												a__          =  decoder_num_hidden_layers
												a__          =  decoder_intermediate_size
												a__          =  mask_ratio
												a__          =  norm_pix_loss


