

"""simple docstring"""





from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCamelCase  :      Union[str, Any]							      =		logging.get_logger(__name__)







class 				SCREAMING_SNAKE_CASE					(		a_       ):






					"""simple docstring"""



					lowercase__				 =       "timm_backbone"







					def __init__(       self			:				List[str]   ,lowercase_			:				Any=None   ,lowercase_			:				int=3   ,lowercase_			:				List[Any]=True   ,lowercase_			:				str=True   ,lowercase_			:				Union[str, Any]=None   ,**lowercase_			:				List[Any]   ,):
						super().__init__(**lowercase_		)
						lowerCAmelCase__	:						Union[str, Any]  				=	backbone
						lowerCAmelCase__	:						Optional[int]  				=	num_channels
						lowerCAmelCase__	:						Optional[int]  				=	features_only
						lowerCAmelCase__	:						Any  				=	use_pretrained_backbone
						lowerCAmelCase__	:						Tuple  				=	True
						lowerCAmelCase__	:						str  				=	out_indices if out_indices is not None else (-1,)






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
)


_A   =     {}

try:
			if not is_sentencepiece_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_A   =     ["NllbTokenizer"]

try:
			if not is_tokenizers_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_A   =     ["NllbTokenizerFast"]


if TYPE_CHECKING:
			try:
						if not is_sentencepiece_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_nllb import NllbTokenizer

			try:
						if not is_tokenizers_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_nllb_fast import NllbTokenizerFast

else:
			import sys

			_A   =     _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



