





from collections import OrderedDict
from typing import Mapping

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


__lowercase	: str       =logging.get_logger(__name__)

__lowercase	: List[str]       ={
    """facebook/xmod-base""": """https://huggingface.co/facebook/xmod-base/resolve/main/config.json""",
    """facebook/xmod-large-prenorm""": """https://huggingface.co/facebook/xmod-large-prenorm/resolve/main/config.json""",
    """facebook/xmod-base-13-125k""": """https://huggingface.co/facebook/xmod-base-13-125k/resolve/main/config.json""",
    """facebook/xmod-base-30-125k""": """https://huggingface.co/facebook/xmod-base-30-125k/resolve/main/config.json""",
    """facebook/xmod-base-30-195k""": """https://huggingface.co/facebook/xmod-base-30-195k/resolve/main/config.json""",
    """facebook/xmod-base-60-125k""": """https://huggingface.co/facebook/xmod-base-60-125k/resolve/main/config.json""",
    """facebook/xmod-base-60-265k""": """https://huggingface.co/facebook/xmod-base-60-265k/resolve/main/config.json""",
    """facebook/xmod-base-75-125k""": """https://huggingface.co/facebook/xmod-base-75-125k/resolve/main/config.json""",
    """facebook/xmod-base-75-269k""": """https://huggingface.co/facebook/xmod-base-75-269k/resolve/main/config.json""",
}

class   A							(						__lowercase    ):
      _snake_case				  ='''xmod'''



      def __init__(						self:    Union[str, Any]		,	_lowerCAmelCase:    Optional[int]=3_0522		,	_lowerCAmelCase:    Union[str, Any]=768		,	_lowerCAmelCase:    Dict=12		,	_lowerCAmelCase:    Any=12		,	_lowerCAmelCase:    Dict=3072		,	_lowerCAmelCase:    List[Any]="gelu"		,	_lowerCAmelCase:    int=0.1		,	_lowerCAmelCase:    Optional[Any]=0.1		,	_lowerCAmelCase:    Optional[int]=512		,	_lowerCAmelCase:    Union[str, Any]=2		,	_lowerCAmelCase:    Union[str, Any]=0.02		,	_lowerCAmelCase:    Any=1e-12		,	_lowerCAmelCase:    List[Any]=1		,	_lowerCAmelCase:    Union[str, Any]=0		,	_lowerCAmelCase:    Any=2		,	_lowerCAmelCase:    Any="absolute"		,	_lowerCAmelCase:    List[str]=True		,	_lowerCAmelCase:    Optional[Any]=None		,	_lowerCAmelCase:    Any=False		,	_lowerCAmelCase:    Union[str, Any]=2		,	_lowerCAmelCase:    str=False		,	_lowerCAmelCase:    Any=True		,	_lowerCAmelCase:    Optional[Any]=True		,	_lowerCAmelCase:    List[Any]=("en_XX",)		,	_lowerCAmelCase:    Tuple=None		,	**_lowerCAmelCase:    Optional[int]		,	)    ->     Tuple:
         '''simple docstring'''

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

         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_size
         UpperCAmelCase_           =initializer_range
         UpperCAmelCase_           =layer_norm_eps
         UpperCAmelCase_           =position_embedding_type
         UpperCAmelCase_           =use_cache
         UpperCAmelCase_           =classifier_dropout
         UpperCAmelCase_           =pre_norm
         UpperCAmelCase_           =adapter_reduction_factor
         UpperCAmelCase_           =adapter_layer_norm
         UpperCAmelCase_           =adapter_reuse_layer_norm
         UpperCAmelCase_           =ln_before_adapter
         UpperCAmelCase_           =list(_lowerCAmelCase							)
         UpperCAmelCase_           =default_language

class   A							(						__lowercase    ):



      @property
      def 						lowerCAmelCase__     (						self:    Union[str, Any]							)    ->     Mapping[str, Mapping[int, str]]:
         '''simple docstring'''

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










"""simple docstring"""

def 		_snake_case	(   _snake_case				:   int							,    _snake_case				:   int				)       ->   int:






      '''simple docstring'''


      return int((input_a, input_a).count(1				) != 0				)






def 		_snake_case	(   )       ->   None:






      '''simple docstring'''


      assert or_gate(0							,    0				) == 0
      assert or_gate(0							,    1				) == 1
      assert or_gate(1							,    0				) == 1
      assert or_gate(1							,    1				) == 1


if __name__ == "__main__":
       print(or_gate(0, 1))
       print(or_gate(1, 0))
       print(or_gate(0, 0))
       print(or_gate(1, 1))

