





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

A :			Optional[int]							   =      {
    'MBZUAI/swiftformer-xs': 'https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json',
}







class       lowerCamelCase       (    __UpperCAmelCase	):
					_SCREAMING_SNAKE_CASE				 =     "swiftformer"


					def __init__(       self						:	List[Any]							,  __snake_case						:	Tuple=3							,  __snake_case						:	Optional[int]=[3, 3, 6, 4]							,  __snake_case						:	List[str]=[48, 56, 1_12, 2_20]							,  __snake_case						:	Any=4							,  __snake_case						:	Optional[Any]=[True, True, True, True]							,  __snake_case						:	List[str]="gelu"							,  __snake_case						:	str=3							,  __snake_case						:	List[Any]=2							,  __snake_case						:	Any=1							,  __snake_case						:	Any=0.0							,  __snake_case						:	Any=True							,  __snake_case						:	Optional[Any]=1e-5							,  __snake_case						:	int=1e-5							,  **__snake_case						:	Any							,  ):





											'''simple docstring'''





											super().__init__(**__snake_case							)
											_snake_case: Tuple	       =		num_channels
											_snake_case: str	       =		depths
											_snake_case: Optional[Any]	       =		embed_dims
											_snake_case: str	       =		mlp_ratio
											_snake_case: List[Any]	       =		downsamples
											_snake_case: Union[str, Any]	       =		hidden_act
											_snake_case: int	       =		down_patch_size
											_snake_case: List[str]	       =		down_stride
											_snake_case: Optional[int]	       =		down_pad
											_snake_case: Dict	       =		drop_path_rate
											_snake_case: Any	       =		use_layer_scale
											_snake_case: str	       =		layer_scale_init_value
											_snake_case: str	       =		batch_norm_eps







class       lowerCamelCase       (    __UpperCAmelCase	):
					_SCREAMING_SNAKE_CASE				 =     version.parse("1.11"	)


					@property
					def  SCREAMING_SNAKE_CASE_		(       self						:	List[Any]							):





											'''simple docstring'''





											return OrderedDict(
											    [
											        ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
											    ]							)




					@property
					def  SCREAMING_SNAKE_CASE_		(       self						:	Optional[Any]							):





											'''simple docstring'''





											return 1e-4












'''simple docstring'''






def    lowercase_   (		lowercase__ = 400_0000    ) ->int:

						if n <= 1:
												return 0
						_snake_case: Union[str, Any]	       =		0
						_snake_case: List[Any]	       =		2
						_snake_case: Any	       =		0
						while 4 * b + a <= n:
												_snake_case       ,    _snake_case: int	       =		b, 4 * b + a
												count += a
						return count + b


if __name__ == "__main__":
		print(F'{solution() = }')





