




"""simple docstring"""
from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


a_				:    int										=     logging.get_logger(__name__)

a_				:    List[Any]										=     {
    '''microsoft/beit-base-patch16-224-pt22k''': (
        '''https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json'''
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}

class __lowercase(      lowercase__				):




					'''simple docstring'''


					__a						:						List[str]     		= 'beit'
					def __init__(    self						,	__a=8192						,	__a=768						,	__a=12						,	__a=12						,	__a=3072						,	__a="gelu"						,	__a=0.0						,	__a=0.0						,	__a=0.02						,	__a=1E-12						,	__a=224						,	__a=16						,	__a=3						,	__a=False						,	__a=False						,	__a=False						,	__a=False						,	__a=0.1						,	__a=0.1						,	__a=True						,	__a=[3, 5, 7, 11]						,	__a=[1, 2, 3, 6]						,	__a=True						,	__a=0.4						,	__a=256						,	__a=1						,	__a=False						,	__a=255						,	**__a						,	):
								super().__init__(**UpperCamelCase_     )

								__lowerCamelCase					:	Union[str, Any]	       =				vocab_size
								__lowerCamelCase					:	Dict	       =				hidden_size
								__lowerCamelCase					:	Dict	       =				num_hidden_layers
								__lowerCamelCase					:	Any	       =				num_attention_heads
								__lowerCamelCase					:	List[Any]	       =				intermediate_size
								__lowerCamelCase					:	Dict	       =				hidden_act
								__lowerCamelCase					:	str	       =				hidden_dropout_prob
								__lowerCamelCase					:	str	       =				attention_probs_dropout_prob
								__lowerCamelCase					:	int	       =				initializer_range
								__lowerCamelCase					:	Optional[Any]	       =				layer_norm_eps

								__lowerCamelCase					:	Optional[int]	       =				image_size
								__lowerCamelCase					:	Optional[int]	       =				patch_size
								__lowerCamelCase					:	List[Any]	       =				num_channels
								__lowerCamelCase					:	Union[str, Any]	       =				use_mask_token
								__lowerCamelCase					:	int	       =				use_absolute_position_embeddings
								__lowerCamelCase					:	Union[str, Any]	       =				use_relative_position_bias
								__lowerCamelCase					:	List[Any]	       =				use_shared_relative_position_bias
								__lowerCamelCase					:	int	       =				layer_scale_init_value
								__lowerCamelCase					:	Union[str, Any]	       =				drop_path_rate
								__lowerCamelCase					:	List[Any]	       =				use_mean_pooling
								# decode head attributes (semantic segmentation)
								__lowerCamelCase					:	Dict	       =				out_indices
								__lowerCamelCase					:	Dict	       =				pool_scales
								# auxiliary head attributes (semantic segmentation)
								__lowerCamelCase					:	List[str]	       =				use_auxiliary_head
								__lowerCamelCase					:	str	       =				auxiliary_loss_weight
								__lowerCamelCase					:	List[Any]	       =				auxiliary_channels
								__lowerCamelCase					:	Union[str, Any]	       =				auxiliary_num_convs
								__lowerCamelCase					:	int	       =				auxiliary_concat_input
								__lowerCamelCase					:	Union[str, Any]	       =				semantic_loss_ignore_index



class __lowercase(      lowercase__				):




					'''simple docstring'''


					__a						:						Optional[Any]     		= version.parse('1.11'				)
					@property
					def     snake_case_				(    self     ):
								return OrderedDict(
								    [
								        ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
								    ]     )





					@property
					def     snake_case_				(    self     ):
								return 1E-4









"""simple docstring"""
import random
from typing import Any





def 						UpperCAmelCase				(			A__:    list     )  ->     list[Any]:
			for _ in range(len(A__     )     ):
						__lowerCamelCase					:	List[Any]	       =				random.randint(0							,				len(A__     ) - 1     )
						__lowerCamelCase					:	Optional[Any]	       =				random.randint(0							,				len(A__     ) - 1     )
						__lowerCamelCase       ,      __lowerCamelCase					:	Any	       =				data[b], data[a]
			return data


if __name__ == "__main__":
					a_				:    Any										=     [0, 1, 2, 3, 4, 5, 6, 7]
					a_				:    int										=     ['''python''', '''says''', '''hello''', '''!''']
					print('''Fisher-Yates Shuffle:''')
					print('''List''', integers, strings)
					print('''FY Shuffle''', fisher_yates_shuffle(integers), fisher_yates_shuffle(strings))



