



'''simple docstring'''





from collections import OrderedDict
from typing import Mapping

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


__lowerCamelCase  				=					logging.get_logger(__name__)

__lowerCamelCase  				=					{
    """google/electra-small-generator""": """https://huggingface.co/google/electra-small-generator/resolve/main/config.json""",
    """google/electra-base-generator""": """https://huggingface.co/google/electra-base-generator/resolve/main/config.json""",
    """google/electra-large-generator""": """https://huggingface.co/google/electra-large-generator/resolve/main/config.json""",
    """google/electra-small-discriminator""": (
        """https://huggingface.co/google/electra-small-discriminator/resolve/main/config.json"""
    ),
    """google/electra-base-discriminator""": (
        """https://huggingface.co/google/electra-base-discriminator/resolve/main/config.json"""
    ),
    """google/electra-large-discriminator""": (
        """https://huggingface.co/google/electra-large-discriminator/resolve/main/config.json"""
    ),
}



class 		_snake_case      (			lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			'''electra'''
 def __init__(						self	,    a=3_0_5_2_2	,    a=1_2_8	,    a=2_5_6	,    a=1_2	,    a=4	,    a=1_0_2_4	,    a="gelu"	,    a=0.1	,    a=0.1	,    a=5_1_2	,    a=2	,    a=0.02	,    a=1e-12	,    a="first"	,    a=True	,    a="gelu"	,    a=0.1	,    a=0	,    a="absolute"	,    a=True	,    a=None	,    **a	,    )	->							Union[str, Any]:




   """simple docstring"""







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

   _A           =    vocab_size
   _A           =    embedding_size
   _A           =    hidden_size
   _A           =    num_hidden_layers
   _A           =    num_attention_heads
   _A           =    intermediate_size
   _A           =    hidden_act
   _A           =    hidden_dropout_prob
   _A           =    attention_probs_dropout_prob
   _A           =    max_position_embeddings
   _A           =    type_vocab_size
   _A           =    initializer_range
   _A           =    layer_norm_eps

   _A           =    summary_type
   _A           =    summary_use_proj
   _A           =    summary_activation
   _A           =    summary_last_dropout
   _A           =    position_embedding_type
   _A           =    use_cache
   _A           =    classifier_dropout







class 		_snake_case      (			lowerCamelCase				):





 """simple docstring"""



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




   """simple docstring"""







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




from ..utils import DummyObject, requires_backends



class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[int]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Any:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Dict:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[int]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[str]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Dict:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[str]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Any:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[str]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Any:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[str]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[str]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Tuple:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[int]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[int]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							List[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							str:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Dict:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[int]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Optional[Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Union[str, Any]:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Any:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							int:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)







class 		_snake_case      (			metaclass=lowerCamelCase				):





 """simple docstring"""



 lowerCamelCase_          =			['''tokenizers''']
 def __init__(						self	,    *a	,    **a					)	->							Any:




   """simple docstring"""







   requires_backends(self	,    ['''tokenizers''']					)