code: 
  
  
  
  
  
  '''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							:			Any				=logging.get_logger(__name__)
  
  __lowerCAmelCase							:			Dict				={
      "MBZUAI/swiftformer-xs": "https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json",
  }
  
  
  
  
  
  
  class      UpperCAmelCase			( UpperCamelCase__       ):
   __lowercase     	=       """swiftformer"""
   def __init__(       self   :Any		, lowercase_   :Union[str, Any]=3		, lowercase_   :str=[3, 3, 6, 4]		, lowercase_   :List[Any]=[48, 56, 1_12, 2_20]		, lowercase_   :Optional[int]=4		, lowercase_   :str=[True, True, True, True]		, lowercase_   :Tuple="gelu"		, lowercase_   :int=3		, lowercase_   :List[Any]=2		, lowercase_   :Optional[Any]=1		, lowercase_   :List[str]=0.0		, lowercase_   :List[Any]=True		, lowercase_   :Any=1E-5		, lowercase_   :Optional[int]=1E-5		, **lowercase_   :List[str]		, )->							Dict:
       super().__init__(**lowercase_							)
       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			( UpperCamelCase__       ):
   __lowercase     	=       version.parse("""1.11"""       )
   @property
   def   UpperCAmelCase_							(       self   :List[Any]							)->							Mapping[str, Mapping[int, str]]:
       return OrderedDict(
           [
               ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
           ]							)
  
  
  
   @property
   def   UpperCAmelCase_							(       self   :str							)->							float:
       return 1E-4
  
  
  
  
style_context: 
  
  
  
  
  
  '''simple docstring'''
  
  import warnings
  
  from ...utils import logging
  from .image_processing_vilt import ViltImageProcessor
  
  
  __lowerCAmelCase							:			Dict				=logging.get_logger(__name__)
  
  
  
  
  
  
  class      UpperCAmelCase			( UpperCamelCase__       ):
   def __init__(       self   :List[str]		, *lowercase_   :Dict		, **lowercase_   :int							)->							None:
       warnings.warn(
           "The class ViltFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
           " use ViltImageProcessor instead."		, lowercase_		, )
       super().__init__(*lowercase_		, **lowercase_							)
  
  
  
  