





'''simple docstring'''






def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase ) ->				int:



			"""simple docstring"""


			while a != 0:
						__snake_case      ,     __snake_case					:      str							      =     b % a, a
			return b







def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase ) ->				int:



			"""simple docstring"""


			if gcd(_lowerCamelCase    ,	_lowerCamelCase ) != 1:
						__snake_case					:      Any							      =     F'''mod inverse of {a!r} and {m!r} does not exist'''
						raise ValueError(_lowerCamelCase )
			__snake_case      ,     __snake_case      ,     __snake_case					:      Dict							      =     1, 0, a
			__snake_case      ,     __snake_case      ,     __snake_case					:      List[Any]							      =     0, 1, m
			while va != 0:
						__snake_case					:      List[str]							      =     ua // va
						__snake_case      ,     __snake_case      ,     __snake_case      ,     __snake_case      ,     __snake_case      ,     __snake_case					:      Union[str, Any]							      =     (ua - q * va), (ua - q * va), (ua - q * va), va, va, va
			return ua % m



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_torch_available,
    is_vision_available,
)


a  :      List[str]            =    {
    """configuration_efficientformer""": [
        """EFFICIENTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """EfficientFormerConfig""",
    ]
}

try:
 if not is_vision_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a  :      str            =    ["""EfficientFormerImageProcessor"""]

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a  :      List[str]            =    [
     """EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
     """EfficientFormerForImageClassification""",
     """EfficientFormerForImageClassificationWithTeacher""",
     """EfficientFormerModel""",
     """EfficientFormerPreTrainedModel""",
 ]

try:
 if not is_tf_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a  :      List[Any]            =    [
     """TF_EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
     """TFEfficientFormerForImageClassification""",
     """TFEfficientFormerForImageClassificationWithTeacher""",
     """TFEfficientFormerModel""",
     """TFEfficientFormerPreTrainedModel""",
 ]

if TYPE_CHECKING:
 from .configuration_efficientformer import EFFICIENTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, EfficientFormerConfig

 try:
  if not is_vision_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .image_processing_efficientformer import EfficientFormerImageProcessor

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_efficientformer import (
      EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
      EfficientFormerForImageClassification,
      EfficientFormerForImageClassificationWithTeacher,
      EfficientFormerModel,
      EfficientFormerPreTrainedModel,
  )
 try:
  if not is_tf_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_tf_efficientformer import (
      TF_EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
      TFEfficientFormerForImageClassification,
      TFEfficientFormerForImageClassificationWithTeacher,
      TFEfficientFormerModel,
      TFEfficientFormerPreTrainedModel,
  )

else:
 import sys

 a  :      Tuple            =    _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)