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 			UpperCAmelCase__    (		snake_case					):



  """simple docstring"""






  lowerCAmelCase__		:	Union[str, Any]    		= 'cvt'






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




    '''simple docstring'''




    super().__init__(**__lowerCAmelCase   )
    __UpperCAmelCase						    =       num_channels
    __UpperCAmelCase						    =       patch_sizes
    __UpperCAmelCase						    =       patch_stride
    __UpperCAmelCase						    =       patch_padding
    __UpperCAmelCase						    =       embed_dim
    __UpperCAmelCase						    =       num_heads
    __UpperCAmelCase						    =       depth
    __UpperCAmelCase						    =       mlp_ratio
    __UpperCAmelCase						    =       attention_drop_rate
    __UpperCAmelCase						    =       drop_rate
    __UpperCAmelCase						    =       drop_path_rate
    __UpperCAmelCase						    =       qkv_bias
    __UpperCAmelCase						    =       cls_token
    __UpperCAmelCase						    =       qkv_projection_method
    __UpperCAmelCase						    =       kernel_qkv
    __UpperCAmelCase						    =       padding_kv
    __UpperCAmelCase						    =       stride_kv
    __UpperCAmelCase						    =       padding_q
    __UpperCAmelCase						    =       stride_q
    __UpperCAmelCase						    =       initializer_range
    __UpperCAmelCase						    =       layer_norm_eps




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


a_							=      {
    """configuration_altclip""": [
        """ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """AltCLIPConfig""",
        """AltCLIPTextConfig""",
        """AltCLIPVisionConfig""",
    ],
    """processing_altclip""": ["""AltCLIPProcessor"""],
}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       a_							=      [
           """ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
           """AltCLIPPreTrainedModel""",
           """AltCLIPModel""",
           """AltCLIPTextModel""",
           """AltCLIPVisionModel""",
       ]


if TYPE_CHECKING:
       from .configuration_altclip import (
           ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
           AltCLIPConfig,
           AltCLIPTextConfig,
           AltCLIPVisionConfig,
       )
       from .processing_altclip import AltCLIPProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_altclip import (
                  ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
                  AltCLIPModel,
                  AltCLIPPreTrainedModel,
                  AltCLIPTextModel,
                  AltCLIPVisionModel,
              )


else:
       import sys

       a_							=      _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



