code: 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_:      Tuple        =			logging.get_logger(__name__)
  
  A_:      Dict        =			{
      'MBZUAI/swiftformer-xs': 'https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json',
  }
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							lowerCAmelCase__       =					'swiftformer'
  
  
  
  							def __init__(    self     ,   UpperCAmelCase=3     ,   UpperCAmelCase=[3, 3, 6, 4]     ,   UpperCAmelCase=[48, 56, 112, 220]     ,   UpperCAmelCase=4     ,   UpperCAmelCase=[True, True, True, True]     ,   UpperCAmelCase="gelu"     ,   UpperCAmelCase=3     ,   UpperCAmelCase=2     ,   UpperCAmelCase=1     ,   UpperCAmelCase=0.0     ,   UpperCAmelCase=True     ,   UpperCAmelCase=1e-5     ,   UpperCAmelCase=1e-5     ,   **UpperCAmelCase     ,   ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														super().__init__(**UpperCAmelCase  )
  														_lowercase				=	num_channels
  														_lowercase				=	depths
  														_lowercase				=	embed_dims
  														_lowercase				=	mlp_ratio
  														_lowercase				=	downsamples
  														_lowercase				=	hidden_act
  														_lowercase				=	down_patch_size
  														_lowercase				=	down_stride
  														_lowercase				=	down_pad
  														_lowercase				=	drop_path_rate
  														_lowercase				=	use_layer_scale
  														_lowercase				=	layer_scale_init_value
  														_lowercase				=	batch_norm_eps
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""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
  
  
  
style_context: import warnings
  
  from ...utils import logging
  from .image_processing_mobilenet_va import MobileNetVaImageProcessor
  
  
  A_:      Tuple        =			logging.get_logger(__name__)
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														warnings.warn(
  														    """The class MobileNetV2FeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
  														    """ Please use MobileNetV2ImageProcessor instead."""     ,   UpperCAmelCase     ,   )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  