'''simple docstring'''


from collections import OrderedDict
from typing import Mapping

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


snake_case__					:      Optional[Any]					      =  logging.get_logger(__name__)

snake_case__					:      str					      =  {
    '''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 					__SCREAMING_SNAKE_CASE						(	A__	):







  '''simple docstring'''






  lowerCamelCase_		:Optional[Any]						   =		'''convbert'''


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




       '''simple docstring'''

       super().__init__(
           pad_token_id=__snake_case				,		bos_token_id=__snake_case				,		eos_token_id=__snake_case				,		**__snake_case				,		)

       UpperCAmelCase_							:       Union[str, Any]       =				vocab_size
       UpperCAmelCase_							:       Optional[Any]       =				hidden_size
       UpperCAmelCase_							:       Optional[int]       =				num_hidden_layers
       UpperCAmelCase_							:       int       =				num_attention_heads
       UpperCAmelCase_							:       int       =				intermediate_size
       UpperCAmelCase_							:       int       =				hidden_act
       UpperCAmelCase_							:       Any       =				hidden_dropout_prob
       UpperCAmelCase_							:       str       =				attention_probs_dropout_prob
       UpperCAmelCase_							:       Optional[Any]       =				max_position_embeddings
       UpperCAmelCase_							:       List[Any]       =				type_vocab_size
       UpperCAmelCase_							:       List[Any]       =				initializer_range
       UpperCAmelCase_							:       Optional[int]       =				layer_norm_eps
       UpperCAmelCase_							:       Any       =				embedding_size
       UpperCAmelCase_							:       Tuple       =				head_ratio
       UpperCAmelCase_							:       int       =				conv_kernel_size
       UpperCAmelCase_							:       List[str]       =				num_groups
       UpperCAmelCase_							:       List[str]       =				classifier_dropout







class 					__SCREAMING_SNAKE_CASE						(	A__	):







  '''simple docstring'''






  @property
  def _UpperCamelCase					(			self						):




       '''simple docstring'''

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







'''simple docstring'''


def  _lowerCamelCase   (				lowerCamelCase_ :							int     ,					lowerCamelCase_ :							int       ):



     """simple docstring"""





     return int(input_a == input_a == 0       )


def  _lowerCamelCase   (				):



     """simple docstring"""





     print('Truth Table of NOR Gate:'       )
     print('|   Input 1   |  Input 2  | Output |'       )
     print(F'''|      0      |    0      |  {nor_gate(0     ,					0       )}     |'''       )
     print(F'''|      0      |    1      |  {nor_gate(0     ,					1       )}     |'''       )
     print(F'''|      1      |    0      |  {nor_gate(1     ,					0       )}     |'''       )
     print(F'''|      1      |    1      |  {nor_gate(1     ,					1       )}     |'''       )


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 main()






