'''simple docstring'''






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


SCREAMING_SNAKE_CASE_						 =      logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_						 =      {
    '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  a			(							snake_case_					):



  """simple docstring"""
  __lowerCAmelCase					   =       """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.0_2 ,     snake_case_=1e-1_2 ,     snake_case_=224 ,     snake_case_=16 ,     snake_case_=3 ,     snake_case_=True ,     snake_case_=16 ,     **snake_case_ ,     ):

    '''simple docstring'''







    super().__init__(**A_       )

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




class  a			(							snake_case_					):



  """simple docstring"""
  __lowerCAmelCase					   =       version.parse("""1.11"""					)







  @property
  def  lowercase_	(				self       ):

    '''simple docstring'''







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







  @property
  def  lowercase_	(				self       ):

    '''simple docstring'''







    return 1e-4

'''simple docstring'''
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate


@dataclass(frozen=snake_case_)
class 			SCREAMING_SNAKE_CASE__      (     snake_case_):
				lowerCAmelCase_     			=							field(default="""language-modeling"""							,       metadata={"""include_in_asdict_even_if_is_default""": True})

				lowerCAmelCase_     			=							Features({"""text""": Value("""string""")})
				lowerCAmelCase_     			=							Features({})
				lowerCAmelCase_     			=							"text"







				@property
				def 						UpperCAmelCase_    (       self     )->		Dict[str, str]:







											'''simple docstring'''






											return {self.text_column: "text"}




