




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

A									={
    '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						(			__a				):
       __a       :  int            =      """poolformer"""
       def __init__(			self		:			Optional[int]     ,       lowercase		:			str=3     ,       lowercase		:			Optional[int]=16     ,       lowercase		:			Union[str, Any]=16     ,       lowercase		:			int=3     ,       lowercase		:			Dict=4.0     ,       lowercase		:			Optional[Any]=[2, 2, 6, 2]     ,       lowercase		:			List[str]=[64, 128, 320, 512]     ,       lowercase		:			Optional[int]=[7, 3, 3, 3]     ,       lowercase		:			int=[4, 2, 2, 2]     ,       lowercase		:			Dict=[2, 1, 1, 1]     ,       lowercase		:			List[str]=4     ,       lowercase		:			int=0.0     ,       lowercase		:			str="gelu"     ,       lowercase		:			int=True     ,       lowercase		:			int=1E-5     ,       lowercase		:			int=0.02     ,       **lowercase		:			Optional[Any]     ,       ):



           '''simple docstring'''

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






class     _a						(			__a				):
       __a       :  str            =      version.parse("""1.11"""				)
       @property
       def 					A   (			self		:			List[str]       ):



           '''simple docstring'''

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







       @property
       def 					A   (			self		:			Any       ):



           '''simple docstring'''

           return 2E-3










'''simple docstring'''







def 		snake_case_							():
    for n in range(1					,     1_0_0_0_0_0_0  ):
        yield n * (n + 1) // 2





def 		snake_case_							(_a			:							Union[str, Any]  ):
    UpperCAmelCase     =	1
    UpperCAmelCase     =	2
    while i * i <= n:
        UpperCAmelCase     =	0
        while n % i == 0:
            n //= i
            multiplicity += 1
        divisors_count *= multiplicity + 1
        i += 1
    if n > 1:
        divisors_count *= 2
    return divisors_count





def 		snake_case_							():
    return next(i for i in triangle_number_generator() if count_divisors(_a  ) > 5_0_0  )


if __name__ == "__main__":
   print(solution())




