


from typing import TYPE_CHECKING

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


lowerCAmelCase					 =	{
    """configuration_tvlt""": ["""TVLT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """TvltConfig"""],
    """feature_extraction_tvlt""": ["""TvltFeatureExtractor"""],
    """processing_tvlt""": ["""TvltProcessor"""],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	lowerCAmelCase					 =	[
	    """TVLT_PRETRAINED_MODEL_ARCHIVE_LIST""",
	    """TvltModel""",
	    """TvltForPreTraining""",
	    """TvltForAudioVisualClassification""",
	    """TvltPreTrainedModel""",
	]

try:
	if not is_vision_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	lowerCAmelCase					 =	["""TvltImageProcessor"""]


if TYPE_CHECKING:
	from .configuration_tvlt import TVLT_PRETRAINED_CONFIG_ARCHIVE_MAP, TvltConfig
	from .processing_tvlt import TvltProcessor
	from .feature_extraction_tvlt import TvltFeatureExtractor

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_tvlt import (
		    TVLT_PRETRAINED_MODEL_ARCHIVE_LIST,
		    TvltForAudioVisualClassification,
		    TvltForPreTraining,
		    TvltModel,
		    TvltPreTrainedModel,
		)

	try:
		if not is_vision_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .image_processing_tvlt import TvltImageProcessor


else:
	import sys

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










from __future__ import annotations

from enum import Enum





class    A					(     A_				):
							UpperCamelCase_     :							List[Any] =24
							UpperCamelCase_     :							List[Any] =21
							UpperCamelCase_     :							int =18
							UpperCamelCase_     :							Optional[int] =15
							UpperCamelCase_     :							Tuple =12
							UpperCamelCase_     :							List[str] =9
							UpperCamelCase_     :							Any =6
							UpperCamelCase_     :							List[str] =3
							UpperCamelCase_     :							str =2
							UpperCamelCase_     :							str =1
							UpperCamelCase_     :							Optional[int] =-1
							UpperCamelCase_     :							List[Any] =-2
							UpperCamelCase_     :							str =-3
							UpperCamelCase_     :							Tuple =-6
							UpperCamelCase_     :							Tuple =-9
							UpperCamelCase_     :							Optional[int] =-12
							UpperCamelCase_     :							str =-15
							UpperCamelCase_     :							Optional[Any] =-18
							UpperCamelCase_     :							Any =-21
							UpperCamelCase_     :							List[str] =-24





class    A					(     A_				):
							UpperCamelCase_     :							str =8
							UpperCamelCase_     :							Optional[Any] =7
							UpperCamelCase_     :							Tuple =6
							UpperCamelCase_     :							List[Any] =5
							UpperCamelCase_     :							Optional[Any] =4
							UpperCamelCase_     :							Union[str, Any] =3
							UpperCamelCase_     :							Union[str, Any] =2
							UpperCamelCase_     :							int =1







def  _lowerCamelCase(			lowercase__     ,				lowercase__     ,				lowercase__     ,				)		->			float:

		'''simple docstring'''







		if isinstance(lowercase__     ,				lowercase__			):
				__lowercase=    SIUnit[known_prefix.lower()]
		if isinstance(lowercase__     ,				lowercase__			):
				__lowercase=    SIUnit[unknown_prefix.lower()]
		__lowercase=    known_amount * (
		    1_0 ** (known_prefix.value - unknown_prefix.value)
		)
		return unknown_amount







def  _lowerCamelCase(			lowercase__     ,				lowercase__     ,				lowercase__     ,				)		->			float:

		'''simple docstring'''







		if isinstance(lowercase__     ,				lowercase__			):
				__lowercase=    BinaryUnit[known_prefix.lower()]
		if isinstance(lowercase__     ,				lowercase__			):
				__lowercase=    BinaryUnit[unknown_prefix.lower()]
		__lowercase=    known_amount * (
		    2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
		)
		return unknown_amount


if __name__ == "__main__":
	import doctest

	doctest.testmod()






