






"""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


a			:    Optional[int]				 =		logging.get_logger(__name__)

a			:    Any				 =		{
    """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    __UpperCAmelCase(       __lowercase							):




						"""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.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__    :				str=	hidden_size
												lowercase__    :				Optional[int]=	num_hidden_layers
												lowercase__    :				Optional[int]=	num_attention_heads
												lowercase__    :				List[Any]=	intermediate_size
												lowercase__    :				Optional[Any]=	hidden_act
												lowercase__    :				Tuple=	hidden_dropout_prob
												lowercase__    :				Dict=	attention_probs_dropout_prob
												lowercase__    :				Optional[int]=	initializer_range
												lowercase__    :				Dict=	layer_norm_eps
												lowercase__    :				Optional[int]=	image_size
												lowercase__    :				str=	patch_size
												lowercase__    :				List[Any]=	num_channels
												lowercase__    :				Dict=	qkv_bias
												lowercase__    :				int=	encoder_stride


class    __UpperCAmelCase(       __lowercase							):




						"""simple docstring"""




						__lowerCamelCase    	= version.parse("1.11"							)




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




						@property
						def 		UpperCAmelCase_	(       self      ):
												'''simple docstring'''
												return 1e-4














"""simple docstring"""







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a			:    Union[str, Any]				 =		{
    """configuration_pegasus_x""": ["""PEGASUS_X_PRETRAINED_CONFIG_ARCHIVE_MAP""", """PegasusXConfig"""],
}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			a			:    int				 =		[
			    """PEGASUS_X_PRETRAINED_MODEL_ARCHIVE_LIST""",
			    """PegasusXForConditionalGeneration""",
			    """PegasusXModel""",
			    """PegasusXPreTrainedModel""",
			]


if TYPE_CHECKING:
			from .configuration_pegasus_x import PEGASUS_X_PRETRAINED_CONFIG_ARCHIVE_MAP, PegasusXConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_pegasus_x import (
						    PEGASUS_X_PRETRAINED_MODEL_ARCHIVE_LIST,
						    PegasusXForConditionalGeneration,
						    PegasusXModel,
						    PegasusXPreTrainedModel,
						)


else:
			import sys

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






