





"""simple docstring"""





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


__A											=		logging.get_logger(__name__)

__A											=		{
    '''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 					_lowerCAmelCase   (     a_       ):
       """simple docstring"""




       __magic_name__     :Any		  =					"""cvt"""






       def __init__(    self    , __UpperCAmelCase=3    , __UpperCAmelCase=[7, 3, 3]    , __UpperCAmelCase=[4, 2, 2]    , __UpperCAmelCase=[2, 1, 1]    , __UpperCAmelCase=[6_4, 1_9_2, 3_8_4]    , __UpperCAmelCase=[1, 3, 6]    , __UpperCAmelCase=[1, 2, 1_0]    , __UpperCAmelCase=[4.0, 4.0, 4.0]    , __UpperCAmelCase=[0.0, 0.0, 0.0]    , __UpperCAmelCase=[0.0, 0.0, 0.0]    , __UpperCAmelCase=[0.0, 0.0, 0.1]    , __UpperCAmelCase=[True, True, True]    , __UpperCAmelCase=[False, False, True]    , __UpperCAmelCase=["dw_bn", "dw_bn", "dw_bn"]    , __UpperCAmelCase=[3, 3, 3]    , __UpperCAmelCase=[1, 1, 1]    , __UpperCAmelCase=[2, 2, 2]    , __UpperCAmelCase=[1, 1, 1]    , __UpperCAmelCase=[1, 1, 1]    , __UpperCAmelCase=0.02    , __UpperCAmelCase=1E-12    , **__UpperCAmelCase    , ):



         '''simple docstring'''

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



"""simple docstring"""





import os
from collections.abc import Iterator

def   __SCREAMING_SNAKE_CASE  (      A_ = "." ):
	for dir_path, dir_names, filenames in os.walk(A_ ):
		lowerCAmelCase__	:						str  				=	[d for d in dir_names if d != '''scripts''' and d[0] not in '''._''']
		for filename in filenames:
			if filename == "__init__.py":
				continue
			if os.path.splitext(A_ )[1] in (".py", ".ipynb"):
				yield os.path.join(A_						,     A_ ).lstrip('''./''' )

def   __SCREAMING_SNAKE_CASE  (      A_ ):
	return f'{i * "  "}*' if i else "\n##"

def   __SCREAMING_SNAKE_CASE  (      A_						,     A_ ):
	lowerCAmelCase__	:						Optional[Any]  				=	old_path.split(os.sep )
	for i, new_part in enumerate(new_path.split(os.sep ) ):
		if (i + 1 > len(A_ ) or old_parts[i] != new_part) and new_part:
			print(f'{md_prefix(A_ )} {new_part.replace("_"						,     " " ).title()}' )
	return new_path

def   __SCREAMING_SNAKE_CASE  (      A_ = "." ):
	lowerCAmelCase__	:						Any  				=	''''''
	for filepath in sorted(good_file_paths(A_ ) ):
		lowerCAmelCase__				,lowerCAmelCase__	:						str  				=	os.path.split(A_ )
		if filepath != old_path:
			lowerCAmelCase__	:						str  				=	print_path(A_						,     A_ )
		lowerCAmelCase__	:						str  				=	(filepath.count(os.sep ) + 1) if filepath else 0
		lowerCAmelCase__	:						Union[str, Any]  				=	f'{filepath}/{filename}'.replace(''' '''						,     '''%20''' )
		lowerCAmelCase__	:						List[str]  				=	os.path.splitext(filename.replace('''_'''						,     ''' ''' ).title() )[0]
		print(f'{md_prefix(A_ )} [{filename}]({url})' )


if __name__ == "__main__":
							print_directory_md('''.''')




