





"""simple docstring"""






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


A 			=  logging.get_logger(__name__)

A 			=  {
    '''facebook/convnextv2-tiny-1k-224''': '''https://huggingface.co/facebook/convnextv2-tiny-1k-224/resolve/main/config.json''',
}




class 				__lowercase			(			_UpperCamelCase   ,      _UpperCamelCase							):







     '''simple docstring'''




     __lowerCAmelCase  =  'convnextv2'







     def __init__(						self	,			_UpperCAmelCase=3	,			_UpperCAmelCase=4	,			_UpperCAmelCase=4	,			_UpperCAmelCase=None	,			_UpperCAmelCase=None	,			_UpperCAmelCase="gelu"	,			_UpperCAmelCase=0.0_2	,			_UpperCAmelCase=1e-1_2	,			_UpperCAmelCase=0.0	,			_UpperCAmelCase=224	,			_UpperCAmelCase=None	,			_UpperCAmelCase=None	,			**_UpperCAmelCase	,			):
         super().__init__(**_UpperCAmelCase     )

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






"""simple docstring"""






from math import isqrt, loga

def     __A      (			a_						:int)		->		list[int]:
				__a :						int			       =  [True] * max_number
				for i in range(2   ,       isqrt(max_number - 1) + 1):
								if is_prime[i]:
												for j in range(i**2   ,       a_   ,       a_):
																__a :						int			       =  False

				return [i for i in range(2   ,       a_) if is_prime[i]]

def     __A      (			a_						:int = 80_08_00   ,       a_						:int = 80_08_00)		->		int:
				__a :						str			       =  degree * loga(a_)
				__a :						Tuple			       =  int(a_)
				__a :						int			       =  calculate_prime_numbers(a_)

				__a :						List[Any]			       =  0
				__a :						Optional[Any]			       =  0
				__a :						Dict			       =  len(a_) - 1
				while left < right:
								while (
								    prime_numbers[right] * loga(prime_numbers[left])
								    + prime_numbers[left] * loga(prime_numbers[right])
								    > upper_bound
								):
												right -= 1
								hybrid_integers_count += right - left
								left += 1

				return hybrid_integers_count


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