'''simple docstring'''

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


UpperCamelCase__     :	str				=			logging.get_logger(__name__)

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


class 				_lowercase	(      UpperCamelCase_		,UpperCamelCase_   ):
      '''simple docstring'''


      UpperCAmelCase_      :      Union[str, Any]      							=   '''convnextv2'''




      def __init__(				self					,lowerCamelCase_=3					,lowerCamelCase_=4					,lowerCamelCase_=4					,lowerCamelCase_=None					,lowerCamelCase_=None					,lowerCamelCase_="gelu"					,lowerCamelCase_=0.02					,lowerCamelCase_=1e-12					,lowerCamelCase_=0.0					,lowerCamelCase_=224					,lowerCamelCase_=None					,lowerCamelCase_=None					,**lowerCamelCase_					,)			->			Tuple:



         '''simple docstring'''



         super().__init__(**__A							)

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





'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCamelCase__     :	Union[str, Any]				=			{'tokenization_byt5': ['ByT5Tokenizer']}


if TYPE_CHECKING:
  from .tokenization_byta import ByTaTokenizer
else:
  import sys

  UpperCamelCase__     :	List[str]				=			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




