'''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										= logging.get_logger(__name__)

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


class    UpperCAmelCase__	(							_snake_case      ):






   """simple docstring"""
   A				:							Optional[Any]			     =     '''swiftformer'''
   def __init__(self							,					_a=3							,					_a=[3, 3, 6, 4]							,					_a=[48, 56, 112, 220]							,					_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							,					)     ->  List[Any]:
        super().__init__(**_a					)
        lowercase_       :							Tuple  					=       num_channels
        lowercase_       :							Union[str, Any]  					=       depths
        lowercase_       :							str  					=       embed_dims
        lowercase_       :							int  					=       mlp_ratio
        lowercase_       :							Tuple  					=       downsamples
        lowercase_       :							Union[str, Any]  					=       hidden_act
        lowercase_       :							Tuple  					=       down_patch_size
        lowercase_       :							Dict  					=       down_stride
        lowercase_       :							Dict  					=       down_pad
        lowercase_       :							Tuple  					=       drop_path_rate
        lowercase_       :							Tuple  					=       use_layer_scale
        lowercase_       :							List[Any]  					=       layer_scale_init_value
        lowercase_       :							List[str]  					=       batch_norm_eps



class    UpperCAmelCase__	(							_snake_case      ):






   """simple docstring"""
   A				:							List[Any]			     =     version.parse('''1.11'''      )
   @property
   def 		_lowerCamelCase			(self					)     ->  Mapping[str, Mapping[int, str]]:
        return OrderedDict(
            [
                ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
            ]					)





   @property
   def 		_lowerCamelCase			(self					)     ->  float:
        return 1e-4





'''simple docstring'''




def _UpperCamelCase (							SCREAMING_SNAKE_CASE_				):
     return " ".join([word[::-1] for word in input_str.split()]				)


if __name__ == "__main__":
 import doctest

 doctest.testmod()




