




'''simple docstring'''




a_      :		Optional[Any]							      =       {
    0: """0""",
    1: """1""",
    2: """2""",
    3: """3""",
    4: """4""",
    5: """5""",
    6: """6""",
    7: """7""",
    8: """8""",
    9: """9""",
    10: """a""",
    11: """b""",
    12: """c""",
    13: """d""",
    14: """e""",
    15: """f""",
}





def      a_							(      __snake_case							:			float   )							->						str:



       """simple docstring"""
       assert type(__snake_case   ) in (int, float) and decimal == int(__snake_case   )
       lowerCamelCase_							=int(__snake_case   )
       lowerCamelCase_							=''''''
       lowerCamelCase_							=False
       if decimal < 0:
              lowerCamelCase_							=True
              decimal *= -1
       while decimal > 0:
              lowerCamelCase_,      lowerCamelCase_							=divmod(__snake_case   ,       16   )
              lowerCamelCase_							=values[remainder] + hexadecimal
       lowerCamelCase_							='''0x''' + hexadecimal
       if negative:
              lowerCamelCase_							='''-''' + hexadecimal
       return hexadecimal


if __name__ == "__main__":
     import doctest

     doctest.testmod()









'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowerCamelCase	:       Tuple      	=	{"configuration_ibert": ["IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "IBertConfig", "IBertOnnxConfig"]}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _lowerCamelCase	:       Dict      	=	[
       "IBERT_PRETRAINED_MODEL_ARCHIVE_LIST",
       "IBertForMaskedLM",
       "IBertForMultipleChoice",
       "IBertForQuestionAnswering",
       "IBertForSequenceClassification",
       "IBertForTokenClassification",
       "IBertModel",
       "IBertPreTrainedModel",
   ]

if TYPE_CHECKING:
   from .configuration_ibert import IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, IBertConfig, IBertOnnxConfig

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_ibert import (
          IBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
          IBertForMaskedLM,
          IBertForMultipleChoice,
          IBertForQuestionAnswering,
          IBertForSequenceClassification,
          IBertForTokenClassification,
          IBertModel,
          IBertPreTrainedModel,
      )

else:
   import sys

   _lowerCamelCase	:       Union[str, Any]      	=	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

