






from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


lowerCamelCase			:					List[str]         =	{
    '''susnato/ernie-m-base_pytorch''': '''https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json''',
    '''susnato/ernie-m-large_pytorch''': '''https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json''',
}



class 							_UpperCamelCase			(a_			):
      snake_case_  =							"""ernie_m"""
      snake_case_  =							{"""dropout""": """classifier_dropout""", """num_classes""": """num_labels"""}


      def __init__(	self					,						__UpperCamelCase = 2_5_0_0_0_2					,						__UpperCamelCase = 7_6_8					,						__UpperCamelCase = 1_2					,						__UpperCamelCase = 1_2					,						__UpperCamelCase = 3_0_7_2					,						__UpperCamelCase = "gelu"					,						__UpperCamelCase = 0.1					,						__UpperCamelCase = 0.1					,						__UpperCamelCase = 5_1_4					,						__UpperCamelCase = 0.0_2					,						__UpperCamelCase = 1					,						__UpperCamelCase = 1e-05					,						__UpperCamelCase=None					,						__UpperCamelCase=False					,						__UpperCamelCase=0.0					,						**__UpperCamelCase					,						)->	List[str]:
           super().__init__(pad_token_id=__UpperCamelCase					,						**__UpperCamelCase	)
           __lowerCAmelCase								=					vocab_size
           __lowerCAmelCase								=					hidden_size
           __lowerCAmelCase								=					num_hidden_layers
           __lowerCAmelCase								=					num_attention_heads
           __lowerCAmelCase								=					intermediate_size
           __lowerCAmelCase								=					hidden_act
           __lowerCAmelCase								=					hidden_dropout_prob
           __lowerCAmelCase								=					attention_probs_dropout_prob
           __lowerCAmelCase								=					max_position_embeddings
           __lowerCAmelCase								=					initializer_range
           __lowerCAmelCase								=					layer_norm_eps
           __lowerCAmelCase								=					classifier_dropout
           __lowerCAmelCase								=					is_decoder
           __lowerCAmelCase								=					act_dropout












from __future__ import annotations

from math import pi

# Define the Reduced Planck Constant ℏ (H bar), speed of light C, value of
# Pi and the function
lowerCamelCase			:					int         =	1.0_5457_1817E-34  # unit of ℏ : J * s

lowerCamelCase			:					Union[str, Any]         =	3E8  # unit of c : m * s^-1





def       __lowerCAmelCase      (						__snake_case					, __snake_case					, __snake_case       ):

     if (force, area, distance).count(0       ) != 1:
          raise ValueError("One and only one argument must be 0"       )
     if force < 0:
          raise ValueError("Magnitude of force can not be negative"       )
     if distance < 0:
          raise ValueError("Distance can not be negative"       )
     if area < 0:
          raise ValueError("Area can not be negative"       )
     if force == 0:
          __lowerCAmelCase								=					(REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2 * area) / (
              240 * (distance) ** 4
          )
          return {"force": force}
     elif area == 0:
          __lowerCAmelCase								=					(240 * force * (distance) ** 4) / (
              REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2
          )
          return {"area": area}
     elif distance == 0:
          __lowerCAmelCase								=					(
              (REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2 * area) / (240 * force)
          ) ** (1 / 4)
          return {"distance": distance}
     raise ValueError("One and only one argument must be 0"       )


# Run doctest
if __name__ == "__main__":
 import doctest

 doctest.testmod()






