





from typing import TYPE_CHECKING

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


snake_case_							=			{}

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

try:
    if not is_tokenizers_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    snake_case_							=			['''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

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








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


snake_case_							=			logging.get_logger(__name__)

snake_case_							=			{
    '''facebook/timesformer''': '''https://huggingface.co/facebook/timesformer/resolve/main/config.json''',
}
class        snake_case_		(			_A):
		lowerCamelCase    :Union[str, Any]						=     "timesformer"







		def __init__(		self			,     __lowercase=2_2_4			,     __lowercase=1_6			,     __lowercase=3			,     __lowercase=8			,     __lowercase=7_6_8			,     __lowercase=1_2			,     __lowercase=1_2			,     __lowercase=3_0_7_2			,     __lowercase="gelu"			,     __lowercase=0.0			,     __lowercase=0.0			,     __lowercase=0.0_2			,     __lowercase=1e-6			,     __lowercase=True			,     __lowercase="divided_space_time"			,     __lowercase=0			,     **__lowercase			,     )				->   List[Any]:
				super().__init__(**__lowercase   )

				lowerCamelCase   : int								=image_size
				lowerCamelCase   : List[str]								=patch_size
				lowerCamelCase   : Union[str, Any]								=num_channels
				lowerCamelCase   : str								=num_frames

				lowerCamelCase   : Dict								=hidden_size
				lowerCamelCase   : int								=num_hidden_layers
				lowerCamelCase   : Dict								=num_attention_heads
				lowerCamelCase   : Dict								=intermediate_size
				lowerCamelCase   : Union[str, Any]								=hidden_act
				lowerCamelCase   : str								=hidden_dropout_prob
				lowerCamelCase   : Union[str, Any]								=attention_probs_dropout_prob
				lowerCamelCase   : List[Any]								=initializer_range
				lowerCamelCase   : List[Any]								=layer_norm_eps
				lowerCamelCase   : List[str]								=qkv_bias

				lowerCamelCase   : Tuple								=attention_type
				lowerCamelCase   : List[Any]								=drop_path_rate

