'''simple docstring'''




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


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

__SCREAMING_SNAKE_CASE       :     int     =  {
    """alibaba-damo/mgp-str-base""": """https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json""",
}

class 	lowerCamelCase_	(snake_case__    ):
      '''simple docstring'''

      __UpperCamelCase:  str						=						"mgp-str"




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

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


'''simple docstring'''




__SCREAMING_SNAKE_CASE       :     Dict     =  8.3_1_4_4_6_2  # Unit - J mol-1 K-1

def 	UpperCamelCase_							(					_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float    )    ->    float:


       """simple docstring"""







       if moles < 0 or kelvin < 0 or volume < 0:
              raise ValueError("Invalid inputs. Enter positive value."    )
       return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume

def 	UpperCamelCase_							(					_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float    )    ->    float:


       """simple docstring"""







       if moles < 0 or kelvin < 0 or pressure < 0:
              raise ValueError("Invalid inputs. Enter positive value."    )
       return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
  from doctest import testmod

  testmod()

