




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


snake_case    				=		logging.get_logger(__name__)

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


class  SCREAMING_SNAKE_CASE			(			lowerCAmelCase      ,		lowerCAmelCase					):
     '''simple docstring'''


     UpperCamelCase_							:		Dict			=	'convnextv2'


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

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














from __future__ import annotations

from cmath import sqrt


def   lowerCamelCase__			(     lowercase						,     lowercase						,     lowercase				):

  """simple docstring"""






  if a == 0:
    raise ValueError("Coefficient 'a' must not be zero."				)
  SCREAMING_SNAKE_CASE       :      List[str]							=    b * b - 4 * a * c

  SCREAMING_SNAKE_CASE       :      str							=    (-b + sqrt(lowercase				)) / (2 * a)
  SCREAMING_SNAKE_CASE       :      Any							=    (-b - sqrt(lowercase				)) / (2 * a)

  return (
      root_a.real if not root_a.imag else root_a,
      root_a.real if not root_a.imag else root_a,
  )


def   lowerCamelCase__			(     ):

  """simple docstring"""






  SCREAMING_SNAKE_CASE						,  SCREAMING_SNAKE_CASE       :      Dict							=    quadratic_roots(a=5						,     b=6						,     c=1				)
  print(F'''The solutions are: {solutiona} and {solutiona}'''				)


if __name__ == "__main__":
   main()






