



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


a_    :  Union[str, Any]						  =		logging.get_logger(__name__)

a_    :  Optional[int]						  =		{
    'Visual-Attention-Network/van-base': (
        'https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'
    ),
}





class  lowerCamelCase__	(    UpperCAmelCase_):
     """simple docstring"""



     _A      =      'van'







     def __init__(self					,      __a=2_24					,      __a=3					,      __a=[7, 3, 3, 3]					,      __a=[4, 2, 2, 2]					,      __a=[64, 1_28, 3_20, 5_12]					,      __a=[3, 3, 12, 3]					,      __a=[8, 8, 4, 4]					,      __a="gelu"					,      __a=0.02					,      __a=1E-6					,      __a=1E-2					,      __a=0.0					,      __a=0.0					,      **__a					,      ):






           '''simple docstring'''



           super().__init__(**__a     )
           lowerCamelCase             =		image_size
           lowerCamelCase             =		num_channels
           lowerCamelCase             =		patch_sizes
           lowerCamelCase             =		strides
           lowerCamelCase             =		hidden_sizes
           lowerCamelCase             =		depths
           lowerCamelCase             =		mlp_ratios
           lowerCamelCase             =		hidden_act
           lowerCamelCase             =		initializer_range
           lowerCamelCase             =		layer_norm_eps
           lowerCamelCase             =		layer_scale_init_value
           lowerCamelCase             =		drop_path_rate
           lowerCamelCase             =		dropout_rate




a_    :  Dict						  =		8.314462  # Unit - J mol-1 K-1

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """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      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """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()