





'''simple docstring'''


from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


lowerCAmelCase					:     Dict												=logging.get_logger(__name__)

lowerCAmelCase					:     Dict												={
    '''facebook/convnextv2-tiny-1k-224''': '''https://huggingface.co/facebook/convnextv2-tiny-1k-224/resolve/main/config.json''',
}
class       a_   (				_lowerCAmelCase	,						_lowerCAmelCase							):
     __A      =			"convnextv2"





     def __init__( self		:					Tuple	,      lowercase		:					List[str]=3	,      lowercase		:					Dict=4	,      lowercase		:					List[Any]=4	,      lowercase		:					Tuple=None	,      lowercase		:					Tuple=None	,      lowercase		:					Optional[Any]="gelu"	,      lowercase		:					Optional[Any]=0.02	,      lowercase		:					Tuple=1e-1_2	,      lowercase		:					str=0.0	,      lowercase		:					Any=224	,      lowercase		:					int=None	,      lowercase		:					Optional[int]=None	,      **lowercase		:					Tuple	,      ):





        """simple docstring"""




        super().__init__(**lowercase						)

        lowercase_			:Optional[int]    			= num_channels
        lowercase_			:List[str]    			= patch_size
        lowercase_			:Dict    			= num_stages
        lowercase_			:Optional[int]    			= [96, 192, 384, 768] if hidden_sizes is None else hidden_sizes
        lowercase_			:Dict    			= [3, 3, 9, 3] if depths is None else depths
        lowercase_			:Optional[int]    			= hidden_act
        lowercase_			:Optional[Any]    			= initializer_range
        lowercase_			:Dict    			= layer_norm_eps
        lowercase_			:Optional[int]    			= drop_path_rate
        lowercase_			:List[Any]    			= image_size
        lowercase_			:str    			= ["stem"] + [F'stage{idx}' for idx in range(1	,      len(self.depths						) + 1						)]
        lowercase_			,							lowercase_			:List[str]    			= get_aligned_output_features_output_indices(
            out_features=lowercase	,      out_indices=lowercase	,      stage_names=self.stage_names						)









'''simple docstring'''


import math
def 							UpperCAmelCase_  (						__lowerCamelCase					:					int ):
   lowercase_			:Dict    			= []
   lowercase_			:List[Any]    			= 2
   lowercase_			:Optional[Any]    			= int(math.sqrt(__lowerCamelCase ) )  # Size of every segment
   lowercase_			:Optional[Any]    			= [True] * (end + 1)
   lowercase_			:Dict    			= []

   while start <= end:
      if temp[start] is True:
         in_prime.append(__lowerCamelCase )
         for i in range(start * start	,end + 1	,__lowerCamelCase ):
            lowercase_			:List[str]    			= False
      start += 1
   prime += in_prime

   lowercase_			:Dict    			= end + 1
   lowercase_			:Dict    			= min(2 * end	,__lowerCamelCase )

   while low <= n:
      lowercase_			:Any    			= [True] * (high - low + 1)
      for each in in_prime:
         lowercase_			:List[Any]    			= math.floor(low / each ) * each
         if t < low:
            t += each

         for j in range(__lowerCamelCase	,high + 1	,__lowerCamelCase ):
            lowercase_			:str    			= False

      for j in range(len(__lowerCamelCase ) ):
         if temp[j] is True:
            prime.append(j + low )

      lowercase_			:Dict    			= high + 1
      lowercase_			:Dict    			= min(high + end	,__lowerCamelCase )

   return prime


print(sieve(10**6))


