





from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_a 						=      logging.get_logger(__name__)

_a 						=      {
    'YituTech/conv-bert-base': 'https://huggingface.co/YituTech/conv-bert-base/resolve/main/config.json',
    'YituTech/conv-bert-medium-small': (
        'https://huggingface.co/YituTech/conv-bert-medium-small/resolve/main/config.json'
    ),
    'YituTech/conv-bert-small': 'https://huggingface.co/YituTech/conv-bert-small/resolve/main/config.json',
    # See all ConvBERT models at https://huggingface.co/models?filter=convbert
}






class 					__A    (    UpperCamelCase_ ):

			'''simple docstring'''







			lowerCAmelCase_							     =						"""convbert"""





			def __init__(    self       ,  __lowerCAmelCase=3_0_5_2_2       ,  __lowerCAmelCase=7_6_8       ,  __lowerCAmelCase=1_2       ,  __lowerCAmelCase=1_2       ,  __lowerCAmelCase=3_0_7_2       ,  __lowerCAmelCase="gelu"       ,  __lowerCAmelCase=0.1       ,  __lowerCAmelCase=0.1       ,  __lowerCAmelCase=5_1_2       ,  __lowerCAmelCase=2       ,  __lowerCAmelCase=0.02       ,  __lowerCAmelCase=1E-12       ,  __lowerCAmelCase=1       ,  __lowerCAmelCase=0       ,  __lowerCAmelCase=2       ,  __lowerCAmelCase=7_6_8       ,  __lowerCAmelCase=2       ,  __lowerCAmelCase=9       ,  __lowerCAmelCase=1       ,  __lowerCAmelCase=None       ,  **__lowerCAmelCase       ,  ):



				'''simple docstring'''







				super().__init__(
				    pad_token_id=UpperCamelCase__       ,  bos_token_id=UpperCamelCase__       ,  eos_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__								=		type_vocab_size
				lowerCamelCase__								=		initializer_range
				lowerCamelCase__								=		layer_norm_eps
				lowerCamelCase__								=		embedding_size
				lowerCamelCase__								=		head_ratio
				lowerCamelCase__								=		conv_kernel_size
				lowerCamelCase__								=		num_groups
				lowerCamelCase__								=		classifier_dropout






class 					__A    (    UpperCamelCase_ ):

			'''simple docstring'''







			@property
			def 		__lowerCamelCase				(    self							):



				'''simple docstring'''







				if self.task == "multiple-choice":
					lowerCamelCase__								=		{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
				else:
					lowerCamelCase__								=		{0: '''batch''', 1: '''sequence'''}
				return OrderedDict(
				    [
				        ('''input_ids''', dynamic_axis),
				        ('''attention_mask''', dynamic_axis),
				        ('''token_type_ids''', dynamic_axis),
				    ]							)




def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float(moles / volume						) * nfactor						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((moles * 0.0821 * temperature) / (volume)						)						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((moles * 0.0821 * temperature) / (pressure)						)						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((pressure * volume) / (0.0821 * moles)						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()





