



"""simple docstring"""

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


A_						:    str				=      logging.get_logger(__name__)

A_						:    str				=      {
    '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__						(	_lowerCamelCase ):


	'''simple docstring'''







	_SCREAMING_SNAKE_CASE	:		Tuple  						= '''cvt'''





	def __init__(      self				:       List[str]     ,       _SCREAMING_SNAKE_CASE				:       int=3     ,       _SCREAMING_SNAKE_CASE				:       List[Any]=[7, 3, 3]     ,       _SCREAMING_SNAKE_CASE				:       List[str]=[4, 2, 2]     ,       _SCREAMING_SNAKE_CASE				:       Dict=[2, 1, 1]     ,       _SCREAMING_SNAKE_CASE				:       Optional[int]=[64, 192, 384]     ,       _SCREAMING_SNAKE_CASE				:       Dict=[1, 3, 6]     ,       _SCREAMING_SNAKE_CASE				:       Any=[1, 2, 10]     ,       _SCREAMING_SNAKE_CASE				:       Any=[4.0, 4.0, 4.0]     ,       _SCREAMING_SNAKE_CASE				:       Optional[Any]=[0.0, 0.0, 0.0]     ,       _SCREAMING_SNAKE_CASE				:       Dict=[0.0, 0.0, 0.0]     ,       _SCREAMING_SNAKE_CASE				:       int=[0.0, 0.0, 0.1]     ,       _SCREAMING_SNAKE_CASE				:       Tuple=[True, True, True]     ,       _SCREAMING_SNAKE_CASE				:       Tuple=[False, False, True]     ,       _SCREAMING_SNAKE_CASE				:       Tuple=["dw_bn", "dw_bn", "dw_bn"]     ,       _SCREAMING_SNAKE_CASE				:       Union[str, Any]=[3, 3, 3]     ,       _SCREAMING_SNAKE_CASE				:       int=[1, 1, 1]     ,       _SCREAMING_SNAKE_CASE				:       Tuple=[2, 2, 2]     ,       _SCREAMING_SNAKE_CASE				:       Tuple=[1, 1, 1]     ,       _SCREAMING_SNAKE_CASE				:       Any=[1, 1, 1]     ,       _SCREAMING_SNAKE_CASE				:       str=0.0_2     ,       _SCREAMING_SNAKE_CASE				:       List[str]=1E-1_2     ,       **_SCREAMING_SNAKE_CASE				:       Dict     ,       )						->	List[str]:





					"""simple docstring"""


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










"""simple docstring"""

from typing import TYPE_CHECKING

from ..utils import _LazyModule


A_						:    str				=      {
    'config': [
        'EXTERNAL_DATA_FORMAT_SIZE_LIMIT',
        'OnnxConfig',
        'OnnxConfigWithPast',
        'OnnxSeq2SeqConfigWithPast',
        'PatchingSpec',
    ],
    'convert': ['export', 'validate_model_outputs'],
    'features': ['FeaturesManager'],
    'utils': ['ParameterFormat', 'compute_serialized_parameters_size'],
}


if TYPE_CHECKING:
							from .config import (
							    EXTERNAL_DATA_FORMAT_SIZE_LIMIT,
							    OnnxConfig,
							    OnnxConfigWithPast,
							    OnnxSeqaSeqConfigWithPast,
							    PatchingSpec,
							)
							from .convert import export, validate_model_outputs
							from .features import FeaturesManager
							from .utils import ParameterFormat, compute_serialized_parameters_size

else:
							import sys

							A_						:    Optional[Any]				=      _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





