'''simple docstring'''





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


SCREAMING_SNAKE_CASE_:     Optional[Any]  =logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_:     List[Any]  ={
    'facebook/convnextv2-tiny-1k-224': 'https://huggingface.co/facebook/convnextv2-tiny-1k-224/resolve/main/config.json',
}




class        __A      ( UpperCamelCase__		,	UpperCamelCase__	):
    a__       :						int          =  """convnextv2"""



    def __init__(self    :    Tuple   ,			__a    :    Any=3   ,			__a    :    List[Any]=4   ,			__a    :    List[Any]=4   ,			__a    :    str=None   ,			__a    :    Union[str, Any]=None   ,			__a    :    Any="gelu"   ,			__a    :    str=0.02   ,			__a    :    str=1E-12   ,			__a    :    str=0.0   ,			__a    :    str=224   ,			__a    :    Optional[Any]=None   ,			__a    :    Union[str, Any]=None   ,			**__a    :    Tuple   ,			):
         super().__init__(**__a )

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





'''simple docstring'''





import os
from math import logaa





def 	lowerCAmelCase_				(					snake_case_       : str = "base_exp.txt"			)    ->      int:


     '''simple docstring'''




     UpperCAmelCase_           =   0
     UpperCAmelCase_           =   0
     for i, line in enumerate(open(os.path.join(os.path.dirname(snake_case_			)					,    snake_case_			)			)			):
          UpperCAmelCase_    , UpperCAmelCase_           =   list(map(snake_case_					,    line.split(","			)			)			)
          if x * logaa(snake_case_			) > largest:
               UpperCAmelCase_           =   x * logaa(snake_case_			)
               UpperCAmelCase_           =   i + 1
     return result


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




