






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


__UpperCAmelCase							:   Any							=  logging.get_logger(__name__)

__UpperCAmelCase							:   Dict							=  {
    "google/vivit-b-16x2-kinetics400": (
        "https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json"
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}


class 					_snake_case						(			_A ):
	_A          =   'vivit'






	def __init__(		self					,UpperCamelCase=224					,UpperCamelCase=32					,UpperCamelCase=[2, 16, 16]					,UpperCamelCase=3					,UpperCamelCase=768					,UpperCamelCase=12					,UpperCamelCase=12					,UpperCamelCase=3_072					,UpperCamelCase="gelu_fast"					,UpperCamelCase=0.0					,UpperCamelCase=0.0					,UpperCamelCase=0.02					,UpperCamelCase=1E-06					,UpperCamelCase=True					,**UpperCamelCase					,)						->    Optional[int]:
					snake_case__      :str         =   hidden_size
					snake_case__      :Dict         =   num_hidden_layers
					snake_case__      :str         =   num_attention_heads
					snake_case__      :str         =   intermediate_size
					snake_case__      :List[str]         =   hidden_act
					snake_case__      :Dict         =   hidden_dropout_prob
					snake_case__      :Any         =   attention_probs_dropout_prob
					snake_case__      :List[Any]         =   initializer_range
					snake_case__      :Optional[Any]         =   layer_norm_eps

					snake_case__      :Optional[Any]         =   image_size
					snake_case__      :List[str]         =   num_frames
					snake_case__      :Optional[Any]         =   tubelet_size
					snake_case__      :List[str]         =   num_channels
					snake_case__      :List[str]         =   qkv_bias

					super().__init__(**UpperCamelCase       )







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


__UpperCAmelCase							:   Tuple							=  {}

try:
	if not is_sentencepiece_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCAmelCase							:   List[Any]							=  ["BartphoTokenizer"]

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

else:
	import sys

	__UpperCAmelCase							:   Tuple							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)