


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


_A			=						{
    'configuration_nezha': ['NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP', 'NezhaConfig'],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _A			=						[
       'NEZHA_PRETRAINED_MODEL_ARCHIVE_LIST',
       'NezhaForNextSentencePrediction',
       'NezhaForMaskedLM',
       'NezhaForPreTraining',
       'NezhaForMultipleChoice',
       'NezhaForQuestionAnswering',
       'NezhaForSequenceClassification',
       'NezhaForTokenClassification',
       'NezhaModel',
       'NezhaPreTrainedModel',
   ]


if TYPE_CHECKING:
   from .configuration_nezha import NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP, NezhaConfig

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_nezha import (
          NEZHA_PRETRAINED_MODEL_ARCHIVE_LIST,
          NezhaForMaskedLM,
          NezhaForMultipleChoice,
          NezhaForNextSentencePrediction,
          NezhaForPreTraining,
          NezhaForQuestionAnswering,
          NezhaForSequenceClassification,
          NezhaForTokenClassification,
          NezhaModel,
          NezhaPreTrainedModel,
      )


else:
   import sys

   _A			=						_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



from ....utils import logging


_A			=						logging.get_logger(__name__)






class    UpperCAmelCase__	( A_		):



    """simple docstring"""






    def __init__(      self ,       A_ ,       A_=None ,       A_=2048   )  ->	Any:
         __UpperCamelCase   							=config.__dict__
         __UpperCamelCase   							=modal_hidden_size
         if num_labels:
              __UpperCamelCase   							=num_labels





