

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


lowerCamelCase__			:					Optional[Any]							  =					logging.get_logger(__name__)

lowerCamelCase__			:					str							  =					{
    '''MBZUAI/swiftformer-xs''': '''https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json''',
}






class       _UpperCAmelCase     (						__a):
			__a	:    Optional[Any]			   =							"""swiftformer"""
			def __init__(						self ,						_A=3 ,						_A=[3, 3, 6, 4] ,						_A=[48, 56, 1_12, 2_20] ,						_A=4 ,						_A=[True, True, True, True] ,						_A="gelu" ,						_A=3 ,						_A=2 ,						_A=1 ,						_A=0.0 ,						_A=True ,						_A=1e-5 ,						_A=1e-5 ,						**_A ,						)      ->      Dict:






				'''simple docstring'''







				super().__init__(**_A       )
				_UpperCAmelCase      :							Any       =   num_channels
				_UpperCAmelCase      :							Optional[Any]       =   depths
				_UpperCAmelCase      :							Dict       =   embed_dims
				_UpperCAmelCase      :							Tuple       =   mlp_ratio
				_UpperCAmelCase      :							Any       =   downsamples
				_UpperCAmelCase      :							str       =   hidden_act
				_UpperCAmelCase      :							Dict       =   down_patch_size
				_UpperCAmelCase      :							Tuple       =   down_stride
				_UpperCAmelCase      :							Optional[Any]       =   down_pad
				_UpperCAmelCase      :							Optional[int]       =   drop_path_rate
				_UpperCAmelCase      :							Any       =   use_layer_scale
				_UpperCAmelCase      :							List[str]       =   layer_scale_init_value
				_UpperCAmelCase      :							Any       =   batch_norm_eps






class       _UpperCAmelCase     (						__a):
			__a	:    Dict			   =							version.parse("""1.11""")
			@property
			def 							__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 							__snake_case	(						self       )      ->      float:






				'''simple docstring'''







				return 1e-4








"""simple docstring"""






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


lowerCamelCase__			:					Union[str, Any]							  =					{
    '''configuration_unispeech_sat''': ['''UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''UniSpeechSatConfig'''],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase__			:					List[str]							  =					[
						    '''UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST''',
						    '''UniSpeechSatForAudioFrameClassification''',
						    '''UniSpeechSatForCTC''',
						    '''UniSpeechSatForPreTraining''',
						    '''UniSpeechSatForSequenceClassification''',
						    '''UniSpeechSatForXVector''',
						    '''UniSpeechSatModel''',
						    '''UniSpeechSatPreTrainedModel''',
						]

if TYPE_CHECKING:
						from .configuration_unispeech_sat import UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechSatConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_unispeech_sat import (
												    UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST,
												    UniSpeechSatForAudioFrameClassification,
												    UniSpeechSatForCTC,
												    UniSpeechSatForPreTraining,
												    UniSpeechSatForSequenceClassification,
												    UniSpeechSatForXVector,
												    UniSpeechSatModel,
												    UniSpeechSatPreTrainedModel,
												)

else:
						import sys

						lowerCamelCase__			:					Any							  =					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





