"""simple docstring"""





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


lowerCAmelCase_     =	logging.get_logger(__name__)

lowerCAmelCase_     =	{
    '''microsoft/cvt-13''': '''https://huggingface.co/microsoft/cvt-13/resolve/main/config.json''',
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}




class  _snake_case		(    __snake_case ):







				"""simple docstring"""






				a			=						"cvt"





				def __init__(      self							:							Any      ,    _A							:							List[Any]=3      ,    _A							:							List[Any]=[7, 3, 3]      ,    _A							:							List[Any]=[4, 2, 2]      ,    _A							:							Union[str, Any]=[2, 1, 1]      ,    _A							:							Tuple=[6_4, 1_9_2, 3_8_4]      ,    _A							:							int=[1, 3, 6]      ,    _A							:							Tuple=[1, 2, 1_0]      ,    _A							:							Optional[int]=[4.0, 4.0, 4.0]      ,    _A							:							Any=[0.0, 0.0, 0.0]      ,    _A							:							Union[str, Any]=[0.0, 0.0, 0.0]      ,    _A							:							str=[0.0, 0.0, 0.1]      ,    _A							:							Any=[True, True, True]      ,    _A							:							Any=[False, False, True]      ,    _A							:							Tuple=["dw_bn", "dw_bn", "dw_bn"]      ,    _A							:							Optional[Any]=[3, 3, 3]      ,    _A							:							Any=[1, 1, 1]      ,    _A							:							Tuple=[2, 2, 2]      ,    _A							:							List[Any]=[1, 1, 1]      ,    _A							:							Dict=[1, 1, 1]      ,    _A							:							Dict=0.02      ,    _A							:							List[Any]=1e-12      ,    **_A							:							List[Any]      ,    ):



											"""simple docstring"""







											super().__init__(**_A)
											_SCREAMING_SNAKE_CASE		:						Union[str, Any]			  =    num_channels
											_SCREAMING_SNAKE_CASE		:						List[str]			  =    patch_sizes
											_SCREAMING_SNAKE_CASE		:						Any			  =    patch_stride
											_SCREAMING_SNAKE_CASE		:						Tuple			  =    patch_padding
											_SCREAMING_SNAKE_CASE		:						Tuple			  =    embed_dim
											_SCREAMING_SNAKE_CASE		:						int			  =    num_heads
											_SCREAMING_SNAKE_CASE		:						Tuple			  =    depth
											_SCREAMING_SNAKE_CASE		:						Optional[Any]			  =    mlp_ratio
											_SCREAMING_SNAKE_CASE		:						Union[str, Any]			  =    attention_drop_rate
											_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    drop_rate
											_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    drop_path_rate
											_SCREAMING_SNAKE_CASE		:						Any			  =    qkv_bias
											_SCREAMING_SNAKE_CASE		:						Dict			  =    cls_token
											_SCREAMING_SNAKE_CASE		:						str			  =    qkv_projection_method
											_SCREAMING_SNAKE_CASE		:						int			  =    kernel_qkv
											_SCREAMING_SNAKE_CASE		:						int			  =    padding_kv
											_SCREAMING_SNAKE_CASE		:						List[str]			  =    stride_kv
											_SCREAMING_SNAKE_CASE		:						List[Any]			  =    padding_q
											_SCREAMING_SNAKE_CASE		:						Dict			  =    stride_q
											_SCREAMING_SNAKE_CASE		:						str			  =    initializer_range
											_SCREAMING_SNAKE_CASE		:						List[Any]			  =    layer_norm_eps



"""simple docstring"""





def      lowerCamelCase_(__SCREAMING_SNAKE_CASE  )->    int:

							if not isinstance(__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE  ):
														raise TypeError("""only integers accepted as input"""  )
							else:
														_SCREAMING_SNAKE_CASE		:						List[Any]			  =    str(abs(__SCREAMING_SNAKE_CASE  )  )
														_SCREAMING_SNAKE_CASE		:						List[str]			  =    [list(__SCREAMING_SNAKE_CASE  ) for char in range(len(__SCREAMING_SNAKE_CASE  )  )]
														for index in range(len(__SCREAMING_SNAKE_CASE  )  ):
																					num_transpositions[index].pop(__SCREAMING_SNAKE_CASE  )
														return max(
														    int("""""".join(list(__SCREAMING_SNAKE_CASE  )  )  ) for transposition in num_transpositions  )


if __name__ == "__main__":
			__import__('''doctest''').testmod()


