
from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowercase  :					List[Any]						    =							logging.get_logger(__name__)

lowercase  :					int						    =							{
    """facebook/deit-base-distilled-patch16-224""": (
        """https://huggingface.co/facebook/deit-base-patch16-224/resolve/main/config.json"""
    ),
    # See all DeiT models at https://huggingface.co/models?filter=deit
}

class __snake_case		(      lowerCAmelCase     ):
    _a		:						List[Any]=				"deit"
    def __init__(  self		,snake_case=768		,snake_case=12		,snake_case=12		,snake_case=3072		,snake_case="gelu"		,snake_case=0.0		,snake_case=0.0		,snake_case=0.02		,snake_case=1e-12		,snake_case=224		,snake_case=16		,snake_case=3		,snake_case=True		,snake_case=16		,**snake_case		,):



           '''simple docstring'''







           super().__init__(**snake_case      )

           lowercase							:     List[Any]       	=      hidden_size
           lowercase							:     Optional[Any]       	=      num_hidden_layers
           lowercase							:     Optional[int]       	=      num_attention_heads
           lowercase							:     Union[str, Any]       	=      intermediate_size
           lowercase							:     int       	=      hidden_act
           lowercase							:     Any       	=      hidden_dropout_prob
           lowercase							:     List[str]       	=      attention_probs_dropout_prob
           lowercase							:     List[str]       	=      initializer_range
           lowercase							:     List[Any]       	=      layer_norm_eps
           lowercase							:     Union[str, Any]       	=      image_size
           lowercase							:     Any       	=      patch_size
           lowercase							:     Union[str, Any]       	=      num_channels
           lowercase							:     List[Any]       	=      qkv_bias
           lowercase							:     Optional[int]       	=      encoder_stride






class __snake_case		(      lowerCAmelCase     ):
    _a		:						List[Any]=				version.parse("1.11"     )
    @property
    def       _SCREAMING_SNAKE_CASE       (  self      ):



           '''simple docstring'''







           return OrderedDict(
               [
                   ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
               ]      )
    @property
    def       _SCREAMING_SNAKE_CASE       (  self      ):



           '''simple docstring'''







           return 1e-4





"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_mobilevit import MobileViTImageProcessor


lowerCAmelCase_   						=   logging.get_logger(__name__)
class        __A       (	A_    ):







		'''simple docstring'''





		def __init__(	self						:  Dict			,*_snake_case						:  Any			,**_snake_case						:  str						)					->		None:






				"""simple docstring"""



				warnings.warn(
				    '''The class MobileViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use MobileViTImageProcessor instead.'''			,_snake_case			,)
				super().__init__(*_snake_case			,**_snake_case						)
