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
  
  
  _lowercase		:     int 					=logging.get_logger(__name__)
  
  _lowercase		:     Any 					={
      """MBZUAI/swiftformer-xs""": """https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json""",
  }
  
  
  
  
  
  
  class 	UpperCamelCase_     (     snake_case__       ):
  					_a			:	Union[str, Any]							=				'swiftformer'
  
  
  
  					def __init__(		self    :    int					,			lowerCamelCase    :    Tuple=3					,			lowerCamelCase    :    List[Any]=[3, 3, 6, 4]					,			lowerCamelCase    :    Any=[48, 56, 1_12, 2_20]					,			lowerCamelCase    :    Tuple=4					,			lowerCamelCase    :    Tuple=[True, True, True, True]					,			lowerCamelCase    :    str="gelu"					,			lowerCamelCase    :    Tuple=3					,			lowerCamelCase    :    Union[str, Any]=2					,			lowerCamelCase    :    int=1					,			lowerCamelCase    :    Optional[int]=0.0					,			lowerCamelCase    :    Optional[Any]=True					,			lowerCamelCase    :    List[Any]=1E-5					,			lowerCamelCase    :    Optional[int]=1E-5					,			**lowerCamelCase    :    Any					,			):
  							super().__init__(**lowerCamelCase	)
  							lowerCamelCase_  :    List[str]   	=			num_channels
  							lowerCamelCase_  :    Tuple   	=			depths
  							lowerCamelCase_  :    int   	=			embed_dims
  							lowerCamelCase_  :    str   	=			mlp_ratio
  							lowerCamelCase_  :    str   	=			downsamples
  							lowerCamelCase_  :    List[Any]   	=			hidden_act
  							lowerCamelCase_  :    Tuple   	=			down_patch_size
  							lowerCamelCase_  :    List[Any]   	=			down_stride
  							lowerCamelCase_  :    Tuple   	=			down_pad
  							lowerCamelCase_  :    Any   	=			drop_path_rate
  							lowerCamelCase_  :    Union[str, Any]   	=			use_layer_scale
  							lowerCamelCase_  :    Any   	=			layer_scale_init_value
  							lowerCamelCase_  :    Dict   	=			batch_norm_eps
  
  
  
  
  
  
  class 	UpperCamelCase_     (     snake_case__       ):
  					_a			:	Optional[int]							=				version.parse('1.11'       )
  
  
  
  					@property
  					def      __a    (		self    :    str	):
  							return OrderedDict(
  							    [
  							        ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
  							    ]	)
  
  
  
  
  
  					@property
  					def      __a    (		self    :    Union[str, Any]	):
  							return 1E-4
  
style_context: 
  
  
  
  
  
  def 		_SCREAMING_SNAKE_CASE    (   lowerCAmelCase__       ,lowerCAmelCase__	):
  		return (input_a, input_a).count(0	) % 2
  
  
  def 		_SCREAMING_SNAKE_CASE    (   ):
  		assert xor_gate(0       ,0	) == 0
  		assert xor_gate(0       ,1	) == 1
  		assert xor_gate(1       ,0	) == 1
  		assert xor_gate(1       ,1	) == 0
  
  
  if __name__ == "__main__":
  		print(xor_gate(0, 0))
  		print(xor_gate(0, 1))
  