





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

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





class UpperCAmelCase_							(   _SCREAMING_SNAKE_CASE   ):
  __lowerCAmelCase      :	List[Any]  	=      """swiftformer"""


  def __init__(       self   ,__snake_case=3   ,__snake_case=[3, 3, 6, 4]   ,__snake_case=[4_8, 5_6, 1_1_2, 2_2_0]   ,__snake_case=4   ,__snake_case=[True, True, True, True]   ,__snake_case="gelu"   ,__snake_case=3   ,__snake_case=2   ,__snake_case=1   ,__snake_case=0.0   ,__snake_case=True   ,__snake_case=1E-5   ,__snake_case=1E-5   ,**__snake_case   ,):



       """simple docstring"""





       super().__init__(**__snake_case   )
       A_					      =					num_channels
       A_					      =					depths
       A_					      =					embed_dims
       A_					      =					mlp_ratio
       A_					      =					downsamples
       A_					      =					hidden_act
       A_					      =					down_patch_size
       A_					      =					down_stride
       A_					      =					down_pad
       A_					      =					drop_path_rate
       A_					      =					use_layer_scale
       A_					      =					layer_scale_init_value
       A_					      =					batch_norm_eps





class UpperCAmelCase_							(   _SCREAMING_SNAKE_CASE   ):
  __lowerCAmelCase      :	Optional[int]  	=      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










from __future__ import annotations

def     UpperCAmelCase_						(						_UpperCAmelCase       :list[int | float]							)  ->							int | float:
     '''simple docstring'''


     if len(_UpperCAmelCase							) == 0:
          raise ValueError('''find_max() arg is an empty sequence'''							)
     A_					      =					nums[0]
     for x in nums:
          if x > max_num:
               A_					      =					x
     return max_num


if __name__ == "__main__":
      import doctest

      doctest.testmod(verbose=True)



