
"""simple docstring"""

from ...configuration_utils import PretrainedConfig


UpperCamelCase			:       int									=				{
    "google/tapas-base-finetuned-sqa": (
        "https://huggingface.co/google/tapas-base-finetuned-sqa/resolve/main/config.json"
    ),
    "google/tapas-base-finetuned-wtq": (
        "https://huggingface.co/google/tapas-base-finetuned-wtq/resolve/main/config.json"
    ),
    "google/tapas-base-finetuned-wikisql-supervised": (
        "https://huggingface.co/google/tapas-base-finetuned-wikisql-supervised/resolve/main/config.json"
    ),
    "google/tapas-base-finetuned-tabfact": (
        "https://huggingface.co/google/tapas-base-finetuned-tabfact/resolve/main/config.json"
    ),
}

class __lowerCAmelCase	(   __SCREAMING_SNAKE_CASE    ):
     lowercase		     =		"tapas"





     def __init__(			self			,  __UpperCAmelCase=3_0522			,  __UpperCAmelCase=768			,  __UpperCAmelCase=12			,  __UpperCAmelCase=12			,  __UpperCAmelCase=3072			,  __UpperCAmelCase="gelu"			,  __UpperCAmelCase=0.1			,  __UpperCAmelCase=0.1			,  __UpperCAmelCase=1024			,  __UpperCAmelCase=[3, 256, 256, 2, 256, 256, 10]			,  __UpperCAmelCase=0.0_2			,  __UpperCAmelCase=1E-12			,  __UpperCAmelCase=0			,  __UpperCAmelCase=10.0			,  __UpperCAmelCase=0			,  __UpperCAmelCase=1.0			,  __UpperCAmelCase=None			,  __UpperCAmelCase=1.0			,  __UpperCAmelCase=False			,  __UpperCAmelCase=None			,  __UpperCAmelCase=1.0			,  __UpperCAmelCase=1.0			,  __UpperCAmelCase=False			,  __UpperCAmelCase=False			,  __UpperCAmelCase="ratio"			,  __UpperCAmelCase=None			,  __UpperCAmelCase=None			,  __UpperCAmelCase=64			,  __UpperCAmelCase=32			,  __UpperCAmelCase=False			,  __UpperCAmelCase=True			,  __UpperCAmelCase=False			,  __UpperCAmelCase=False			,  __UpperCAmelCase=True			,  __UpperCAmelCase=False			,  __UpperCAmelCase=None			,  __UpperCAmelCase=None			,  **__UpperCAmelCase			,  ):

      '''simple docstring'''




      super().__init__(pad_token_id=__UpperCAmelCase			,  **__UpperCAmelCase   )

      # BERT hyperparameters (with updated max_position_embeddings and type_vocab_sizes)
      __UpperCamelCase       						= vocab_size
      __UpperCamelCase       						= hidden_size
      __UpperCamelCase       						= num_hidden_layers
      __UpperCamelCase       						= num_attention_heads
      __UpperCamelCase       						= hidden_act
      __UpperCamelCase       						= intermediate_size
      __UpperCamelCase       						= hidden_dropout_prob
      __UpperCamelCase       						= attention_probs_dropout_prob
      __UpperCamelCase       						= max_position_embeddings
      __UpperCamelCase       						= type_vocab_sizes
      __UpperCamelCase       						= initializer_range
      __UpperCamelCase       						= layer_norm_eps

      # Fine-tuning task hyperparameters
      __UpperCamelCase       						= positive_label_weight
      __UpperCamelCase       						= num_aggregation_labels
      __UpperCamelCase       						= aggregation_loss_weight
      __UpperCamelCase       						= use_answer_as_supervision
      __UpperCamelCase       						= answer_loss_importance
      __UpperCamelCase       						= use_normalized_answer_loss
      __UpperCamelCase       						= huber_loss_delta
      __UpperCamelCase       						= temperature
      __UpperCamelCase       						= aggregation_temperature
      __UpperCamelCase       						= use_gumbel_for_cells
      __UpperCamelCase       						= use_gumbel_for_aggregation
      __UpperCamelCase       						= average_approximation_function
      __UpperCamelCase       						= cell_selection_preference
      __UpperCamelCase       						= answer_loss_cutoff
      __UpperCamelCase       						= max_num_rows
      __UpperCamelCase       						= max_num_columns
      __UpperCamelCase       						= average_logits_per_cell
      __UpperCamelCase       						= select_one_column
      __UpperCamelCase       						= allow_empty_column_selection
      __UpperCamelCase       						= init_cell_selection_weights_to_zero
      __UpperCamelCase       						= reset_position_index_per_cell
      __UpperCamelCase       						= disable_per_token_loss

      # Aggregation hyperparameters
      __UpperCamelCase       						= aggregation_labels
      __UpperCamelCase       						= no_aggregation_label_index

      if isinstance(self.aggregation_labels			,  __UpperCAmelCase   ):
       __UpperCamelCase       						= {int(__UpperCAmelCase   ): v for k, v in aggregation_labels.items()}





"""simple docstring"""

def 							A		(       snake_case   :int       ,      snake_case   :int	)   ->			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()



