



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		:				Union[str, Any]      		=logging.get_logger(__name__)

_lowercase		:				str      		={
    "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__    (A__		):







						"""simple docstring"""




						__lowerCAmelCase					:str      =					"deit"

						def __init__(       self ,       __lowercase=7_6_8 ,       __lowercase=1_2 ,       __lowercase=1_2 ,       __lowercase=3_0_7_2 ,       __lowercase="gelu" ,       __lowercase=0.0 ,       __lowercase=0.0 ,       __lowercase=0.0_2 ,       __lowercase=1E-12 ,       __lowercase=2_2_4 ,       __lowercase=1_6 ,       __lowercase=3 ,       __lowercase=True ,       __lowercase=1_6 ,       **__lowercase ,       ) ->				List[Any]:
									"""simple docstring"""




									super().__init__(**__lowercase  )

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




class        snake_case__    (A__		):







						"""simple docstring"""




						__lowerCAmelCase					:List[str]      =					version.parse("1.11"		)

						@property
						def 							SCREAMING_SNAKE_CASE__(       self  ) ->				Mapping[str, Mapping[int, str]]:
									"""simple docstring"""




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

						@property
						def 							SCREAMING_SNAKE_CASE__(       self  ) ->				float:
									"""simple docstring"""




									return 1E-4









import warnings

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


_lowercase		:				Union[str, Any]      		=logging.get_logger(__name__)

class        snake_case__    (A__		):







						"""simple docstring"""




						def __init__(       self ,       *__lowercase ,       **__lowercase  ) ->				None:
									"""simple docstring"""




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




