





"""simple docstring"""
from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig


lowerCamelCase_       =		{
    "albert-base-v1": "https://huggingface.co/albert-base-v1/resolve/main/config.json",
    "albert-large-v1": "https://huggingface.co/albert-large-v1/resolve/main/config.json",
    "albert-xlarge-v1": "https://huggingface.co/albert-xlarge-v1/resolve/main/config.json",
    "albert-xxlarge-v1": "https://huggingface.co/albert-xxlarge-v1/resolve/main/config.json",
    "albert-base-v2": "https://huggingface.co/albert-base-v2/resolve/main/config.json",
    "albert-large-v2": "https://huggingface.co/albert-large-v2/resolve/main/config.json",
    "albert-xlarge-v2": "https://huggingface.co/albert-xlarge-v2/resolve/main/config.json",
    "albert-xxlarge-v2": "https://huggingface.co/albert-xxlarge-v2/resolve/main/config.json",
}






class  _SCREAMING_SNAKE_CASE(       A  ):
       SCREAMING_SNAKE_CASE_       :				List[str]     						=  '''albert'''




       def __init__(						self		,SCREAMING_SNAKE_CASE__=3_00_00		,SCREAMING_SNAKE_CASE__=1_28		,SCREAMING_SNAKE_CASE__=40_96		,SCREAMING_SNAKE_CASE__=12		,SCREAMING_SNAKE_CASE__=1		,SCREAMING_SNAKE_CASE__=64		,SCREAMING_SNAKE_CASE__=1_63_84		,SCREAMING_SNAKE_CASE__=1		,SCREAMING_SNAKE_CASE__="gelu_new"		,SCREAMING_SNAKE_CASE__=0		,SCREAMING_SNAKE_CASE__=0		,SCREAMING_SNAKE_CASE__=5_12		,SCREAMING_SNAKE_CASE__=2		,SCREAMING_SNAKE_CASE__=0.0_2		,SCREAMING_SNAKE_CASE__=1E-12		,SCREAMING_SNAKE_CASE__=0.1		,SCREAMING_SNAKE_CASE__="absolute"		,SCREAMING_SNAKE_CASE__=0		,SCREAMING_SNAKE_CASE__=2		,SCREAMING_SNAKE_CASE__=3		,**SCREAMING_SNAKE_CASE__		,)      ->				Any:





             """simple docstring"""






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

             __SCREAMING_SNAKE_CASE       :Optional[int]		    =  vocab_size
             __SCREAMING_SNAKE_CASE       :Optional[int]		    =  embedding_size
             __SCREAMING_SNAKE_CASE       :Any		    =  hidden_size
             __SCREAMING_SNAKE_CASE       :Dict		    =  num_hidden_layers
             __SCREAMING_SNAKE_CASE       :str		    =  num_hidden_groups
             __SCREAMING_SNAKE_CASE       :Dict		    =  num_attention_heads
             __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  inner_group_num
             __SCREAMING_SNAKE_CASE       :Any		    =  hidden_act
             __SCREAMING_SNAKE_CASE       :Optional[Any]		    =  intermediate_size
             __SCREAMING_SNAKE_CASE       :int		    =  hidden_dropout_prob
             __SCREAMING_SNAKE_CASE       :Any		    =  attention_probs_dropout_prob
             __SCREAMING_SNAKE_CASE       :List[Any]		    =  max_position_embeddings
             __SCREAMING_SNAKE_CASE       :List[Any]		    =  type_vocab_size
             __SCREAMING_SNAKE_CASE       :Dict		    =  initializer_range
             __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  layer_norm_eps
             __SCREAMING_SNAKE_CASE       :Optional[Any]		    =  classifier_dropout_prob
             __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  position_embedding_type






class  _SCREAMING_SNAKE_CASE(       A  ):




       @property
       def    _UpperCamelCase					(						self							)      ->				Mapping[str, Mapping[int, str]]:





             """simple docstring"""






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






"""simple docstring"""
def 					__lowerCamelCase       (							a_					:		int			,       a_					:		int							)      ->				int:
      return int((input_a, input_a).count(0							) == 0							)



def 					__lowerCamelCase       (							)      ->				None:
      assert and_gate(0			,       0							) == 0
      assert and_gate(0			,       1							) == 0
      assert and_gate(1			,       0							) == 0
      assert and_gate(1			,       1							) == 1


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