


"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


SCREAMING_SNAKE_CASE :    Tuple									=				logging.get_logger(__name__)

SCREAMING_SNAKE_CASE :    Dict									=				{
    '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 			_UpperCAmelCase (							lowercase_				):






		'''simple docstring'''

		lowerCamelCase__				="""cvt"""



		def __init__(self				,       a_=3				,       a_=[7, 3, 3]				,       a_=[4, 2, 2]				,       a_=[2, 1, 1]				,       a_=[64, 1_92, 3_84]				,       a_=[1, 3, 6]				,       a_=[1, 2, 10]				,       a_=[4.0, 4.0, 4.0]				,       a_=[0.0, 0.0, 0.0]				,       a_=[0.0, 0.0, 0.0]				,       a_=[0.0, 0.0, 0.1]				,       a_=[True, True, True]				,       a_=[False, False, True]				,       a_=["dw_bn", "dw_bn", "dw_bn"]				,       a_=[3, 3, 3]				,       a_=[1, 1, 1]				,       a_=[2, 2, 2]				,       a_=[1, 1, 1]				,       a_=[1, 1, 1]				,       a_=0.02				,       a_=1E-12				,       **a_				,       ):





			'''simple docstring'''

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









'''simple docstring'''

def _SCREAMING_SNAKE_CASE      (A       )       ->       int:






       """simple docstring"""







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


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




