



from __future__ import annotations

from enum import Enum

class 			__snake_case   ( SCREAMING_SNAKE_CASE):







							'''simple docstring'''






							UpperCamelCase__					:   Any       =       2_4
							UpperCamelCase__					:   Union[str, Any]       =       2_1
							UpperCamelCase__					:   List[Any]       =       1_8
							UpperCamelCase__					:   Any       =       1_5
							UpperCamelCase__					:   Tuple       =       1_2
							UpperCamelCase__					:   Any       =       9
							UpperCamelCase__					:   str       =       6
							UpperCamelCase__					:   List[str]       =       3
							UpperCamelCase__					:   List[Any]       =       2
							UpperCamelCase__					:   Union[str, Any]       =       1
							UpperCamelCase__					:   Dict       =       -1
							UpperCamelCase__					:   Optional[Any]       =       -2
							UpperCamelCase__					:   Any       =       -3
							UpperCamelCase__					:   Any       =       -6
							UpperCamelCase__					:   Optional[int]       =       -9
							UpperCamelCase__					:   List[str]       =       -1_2
							UpperCamelCase__					:   Optional[int]       =       -1_5
							UpperCamelCase__					:   Union[str, Any]       =       -1_8
							UpperCamelCase__					:   List[Any]       =       -2_1
							UpperCamelCase__					:   Union[str, Any]       =       -2_4




class 			__snake_case   ( SCREAMING_SNAKE_CASE):







							'''simple docstring'''






							UpperCamelCase__					:   List[str]       =       8
							UpperCamelCase__					:   Optional[int]       =       7
							UpperCamelCase__					:   Dict       =       6
							UpperCamelCase__					:   Dict       =       5
							UpperCamelCase__					:   Optional[int]       =       4
							UpperCamelCase__					:   Dict       =       3
							UpperCamelCase__					:   Dict       =       2
							UpperCamelCase__					:   Union[str, Any]       =       1




def       A_   (						__a  :					float			,		__a  :					str | SIUnit			,		__a  :					str | SIUnit			,		):

				"""simple docstring"""
				if isinstance(__a			,		__a		):
								a__					   =		SIUnit[known_prefix.lower()]
				if isinstance(__a			,		__a		):
								a__					   =		SIUnit[unknown_prefix.lower()]
				a__					   =		known_amount * (
				    10 ** (known_prefix.value - unknown_prefix.value)
				)
				return unknown_amount

def       A_   (						__a  :					float			,		__a  :					str | BinaryUnit			,		__a  :					str | BinaryUnit			,		):

				"""simple docstring"""
				if isinstance(__a			,		__a		):
								a__					   =		BinaryUnit[known_prefix.lower()]
				if isinstance(__a			,		__a		):
								a__					   =		BinaryUnit[unknown_prefix.lower()]
				a__					   =		known_amount * (
				    2 ** ((known_prefix.value - unknown_prefix.value) * 10)
				)
				return unknown_amount


if __name__ == "__main__":
	import doctest

	doctest.testmod()




from typing import TYPE_CHECKING

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


__A	:   Optional[int]	=					{
    'configuration_mobilevitv2': [
        'MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'MobileViTV2Config',
        'MobileViTV2OnnxConfig',
    ],
}


try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__A	:   Tuple	=					[
	    'MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST',
	    'MobileViTV2ForImageClassification',
	    'MobileViTV2ForSemanticSegmentation',
	    'MobileViTV2Model',
	    'MobileViTV2PreTrainedModel',
	]

if TYPE_CHECKING:
	from .configuration_mobilevitva import (
	    MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP,
	    MobileViTVaConfig,
	    MobileViTVaOnnxConfig,
	)

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_mobilevitva import (
		    MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST,
		    MobileViTVaForImageClassification,
		    MobileViTVaForSemanticSegmentation,
		    MobileViTVaModel,
		    MobileViTVaPreTrainedModel,
		)

else:
	import sys

	__A	:   List[str]	=					_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)
