


from typing import TYPE_CHECKING

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


__snake_case             =	{
    '''configuration_deta''': ['''DETA_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''DetaConfig'''],
}

try:
    if not is_vision_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    __snake_case             =	['''DetaImageProcessor''']

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    __snake_case             =	[
        '''DETA_PRETRAINED_MODEL_ARCHIVE_LIST''',
        '''DetaForObjectDetection''',
        '''DetaModel''',
        '''DetaPreTrainedModel''',
    ]


if TYPE_CHECKING:
    from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig

    try:
        if not is_vision_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .image_processing_deta import DetaImageProcessor

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_deta import (
            DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
            DetaForObjectDetection,
            DetaModel,
            DetaPreTrainedModel,
        )

else:
    import sys

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






from __future__ import annotations






def 		_A		(		_lowercase   )				->   int | float:


     """simple docstring"""


     if len(_lowercase   ) == 0:
          raise ValueError('find_max() arg is an empty sequence'   )
     __UpperCamelCase   = nums[0]
     for x in nums:
          if x > max_num:
               __UpperCamelCase   = x
     return max_num


if __name__ == "__main__":
    import doctest

    doctest.testmod(verbose=True)


