


from __future__ import annotations






def 					UpperCamelCase   (      __magic_name__	:				list[float]       ,       __magic_name__	:				list[float]	)  ->    float:
		"""simple docstring"""




		lowercase__	     =						sorted(numsa + numsa	)
		lowercase__     ,      lowercase__	     =						divmod(len(__magic_name__	)       ,       2	)
		if mod == 1:
				return all_numbers[div]
		else:
				return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	A			:						Optional[Any]        =  [float(x) for x in input('Enter the elements of first array: ').split()]
	A			:						List[str]        =  [float(x) for x in input('Enter the elements of second array: ').split()]
	print(F'The median of two arrays is: {median_of_two_arrays(array_a, array_a)}')





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

A			:						Tuple        =  {
    'sail/poolformer_s12': 'https://huggingface.co/sail/poolformer_s12/resolve/main/config.json',
    # See all PoolFormer models at https://huggingface.co/models?filter=poolformer
}



class 				A       (			UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					'''poolformer'''

					def __init__(self       :		Dict ,   _UpperCAmelCase       :		Union[str, Any]=3 ,   _UpperCAmelCase       :		str=16 ,   _UpperCAmelCase       :		Any=16 ,   _UpperCAmelCase       :		Union[str, Any]=3 ,   _UpperCAmelCase       :		Union[str, Any]=4.0 ,   _UpperCAmelCase       :		str=[2, 2, 6, 2] ,   _UpperCAmelCase       :		int=[64, 128, 320, 512] ,   _UpperCAmelCase       :		Union[str, Any]=[7, 3, 3, 3] ,   _UpperCAmelCase       :		List[Any]=[4, 2, 2, 2] ,   _UpperCAmelCase       :		Union[str, Any]=[2, 1, 1, 1] ,   _UpperCAmelCase       :		Optional[Any]=4 ,   _UpperCAmelCase       :		Dict=0.0 ,   _UpperCAmelCase       :		Union[str, Any]="gelu" ,   _UpperCAmelCase       :		Optional[Any]=True ,   _UpperCAmelCase       :		Tuple=1E-5 ,   _UpperCAmelCase       :		Tuple=0.02 ,   **_UpperCAmelCase       :		Union[str, Any] ,   )		->  Optional[int]:




							"""simple docstring"""


							lowercase__	     =						num_channels
							lowercase__	     =						patch_size
							lowercase__	     =						stride
							lowercase__	     =						padding
							lowercase__	     =						pool_size
							lowercase__	     =						hidden_sizes
							lowercase__	     =						mlp_ratio
							lowercase__	     =						depths
							lowercase__	     =						patch_sizes
							lowercase__	     =						strides
							lowercase__	     =						num_encoder_blocks
							lowercase__	     =						drop_path_rate
							lowercase__	     =						hidden_act
							lowercase__	     =						use_layer_scale
							lowercase__	     =						layer_scale_init_value
							lowercase__	     =						initializer_range
							super().__init__(**_UpperCAmelCase						)






class 				A       (			UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					version.parse('''1.11'''				)

					@property
					def     lowerCamelCase__	(self       :		List[str]						)		->  Mapping[str, Mapping[int, str]]:




							"""simple docstring"""


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


					@property
					def     lowerCamelCase__	(self       :		Dict						)		->  float:




							"""simple docstring"""


							return 2E-3

