



"""simple docstring"""





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


lowercase  							=					logging.get_logger(__name__)

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




class 			lowercase__			(      _lowerCAmelCase,					_lowerCAmelCase    ):
       '''simple docstring'''







       _UpperCAmelCase      				=					'convnextv2'






       def __init__(  self	,       snake_case=3	,       snake_case=4	,       snake_case=4	,       snake_case=None	,       snake_case=None	,       snake_case="gelu"	,       snake_case=0.02	,       snake_case=1E-12	,       snake_case=0.0	,       snake_case=224	,       snake_case=None	,       snake_case=None	,       **snake_case	,       )			->							Any:
         super().__init__(**_lowerCAmelCase						)

         _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=_lowerCAmelCase	,       out_indices=_lowerCAmelCase	,       stage_names=self.stage_names						)







"""simple docstring"""





from __future__ import annotations

from cmath import sqrt




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int     ,				A	:						int       ):

		'''simple docstring'''


		if a == 0:
				raise ValueError('Coefficient \'a\' must not be zero.'       )
		_UpperCAmelCase							 =		b * b - 4 * a * c

		_UpperCAmelCase							 =		(-b + sqrt(A       )) / (2 * a)
		_UpperCAmelCase							 =		(-b - sqrt(A       )) / (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 	UpperCAmelCase     (		):

		'''simple docstring'''


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


if __name__ == "__main__":
					main()


