from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowerCamelCase					:	List[Any]       =  logging.get_logger(__name__)

__lowerCamelCase					:	Dict       =  {
    '''alibaba-damo/mgp-str-base''': '''https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json''',
}






class 		a__						(					A__					):
					A	       =							'mgp-str'

					def __init__(    self      :       Optional[int],_A      :       str=[32, 128],_A      :       int=4,_A      :       Union[str, Any]=3,_A      :       List[str]=27,_A      :       str=38,_A      :       Optional[Any]=5_0257,_A      :       List[str]=3_0522,_A      :       Optional[int]=768,_A      :       str=12,_A      :       Tuple=12,_A      :       Optional[int]=4.0,_A      :       Dict=True,_A      :       Any=False,_A      :       Dict=1E-5,_A      :       int=0.0,_A      :       List[Any]=0.0,_A      :       Optional[Any]=0.0,_A      :       List[Any]=False,_A      :       str=0.02,**_A      :       str,):







							"""simple docstring"""






							super().__init__(**_A    )

							SCREAMING_SNAKE_CASE_  :		List[Any]				      =    image_size
							SCREAMING_SNAKE_CASE_  :		int				      =    patch_size
							SCREAMING_SNAKE_CASE_  :		List[str]				      =    num_channels
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    max_token_length
							SCREAMING_SNAKE_CASE_  :		List[str]				      =    num_character_labels
							SCREAMING_SNAKE_CASE_  :		Dict				      =    num_bpe_labels
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    num_wordpiece_labels
							SCREAMING_SNAKE_CASE_  :		List[str]				      =    hidden_size
							SCREAMING_SNAKE_CASE_  :		Optional[Any]				      =    num_hidden_layers
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    num_attention_heads
							SCREAMING_SNAKE_CASE_  :		str				      =    mlp_ratio
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    distilled
							SCREAMING_SNAKE_CASE_  :		Dict				      =    layer_norm_eps
							SCREAMING_SNAKE_CASE_  :		Dict				      =    drop_rate
							SCREAMING_SNAKE_CASE_  :		str				      =    qkv_bias
							SCREAMING_SNAKE_CASE_  :		Dict				      =    attn_drop_rate
							SCREAMING_SNAKE_CASE_  :		Optional[int]				      =    drop_path_rate
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    output_aa_attentions
							SCREAMING_SNAKE_CASE_  :		Any				      =    initializer_range

from __future__ import annotations

from math import pi, sqrt




def       _snake_case	(   lowerCAmelCase							:   float   , lowerCAmelCase							:   float	):
		"""simple docstring"""







		if inductance <= 0:
				raise ValueError("Inductance cannot be 0 or negative"	)

		elif capacitance <= 0:
				raise ValueError("Capacitance cannot be 0 or negative"	)

		else:
				return (
				    "Resonant frequency",
				    float(1 / (2 * pi * (sqrt(inductance * capacitance	)))	),
				)


if __name__ == "__main__":
		import doctest

		doctest.testmod()
