





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


__lowerCamelCase :  str										=  logging.get_logger(__name__)

__lowerCamelCase :  str										=  {"""openai-gpt""": """https://huggingface.co/openai-gpt/resolve/main/config.json"""}



class       A__     ( __snake_case    ):
      _UpperCAmelCase			:List[str]							=     'openai-gpt'
      _UpperCAmelCase			:Any							=     {
          'max_position_embeddings': 'n_positions',
          'hidden_size': 'n_embd',
          'num_attention_heads': 'n_head',
          'num_hidden_layers': 'n_layer',
      }





      def __init__(				self ,							A_=4_0478 ,							A_=512 ,							A_=768 ,							A_=12 ,							A_=12 ,							A_="gelu" ,							A_=0.1 ,							A_=0.1 ,							A_=0.1 ,							A_=1e-5 ,							A_=0.02 ,							A_="cls_index" ,							A_=True ,							A_=None ,							A_=True ,							A_=0.1 ,							**A_ ,							):
       '''simple docstring'''




       UpperCamelCase			:      Tuple 			=     vocab_size
       UpperCamelCase			:      Tuple 			=     n_positions
       UpperCamelCase			:      Tuple 			=     n_embd
       UpperCamelCase			:      Tuple 			=     n_layer
       UpperCamelCase			:      Union[str, Any] 			=     n_head
       UpperCamelCase			:      int 			=     afn
       UpperCamelCase			:      Dict 			=     resid_pdrop
       UpperCamelCase			:      List[Any] 			=     embd_pdrop
       UpperCamelCase			:      Tuple 			=     attn_pdrop
       UpperCamelCase			:      Tuple 			=     layer_norm_epsilon
       UpperCamelCase			:      Any 			=     initializer_range
       UpperCamelCase			:      Dict 			=     summary_type
       UpperCamelCase			:      Optional[Any] 			=     summary_use_proj
       UpperCamelCase			:      int 			=     summary_activation
       UpperCamelCase			:      Any 			=     summary_first_dropout
       UpperCamelCase			:      Union[str, Any] 			=     summary_proj_to_labels
       super().__init__(**A_     )







def 	A_       (  _lowerCAmelCase							,     _lowerCAmelCase  )		->				int:
 return int(input_a == input_a == 0  )



def 	A_       (  )		->				None:
 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()
