'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


a=  logging.get_logger(__name__)

a=  {
    '''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 			__lowercase		(						_lowerCamelCase						):







     """simple docstring"""






     SCREAMING_SNAKE_CASE__		   =						'''vivit'''







     def __init__(		self     ,			_lowerCamelCase=2_2_4     ,			_lowerCamelCase=3_2     ,			_lowerCamelCase=[2, 1_6, 1_6]     ,			_lowerCamelCase=3     ,			_lowerCamelCase=7_6_8     ,			_lowerCamelCase=1_2     ,			_lowerCamelCase=1_2     ,			_lowerCamelCase=3_0_7_2     ,			_lowerCamelCase="gelu_fast"     ,			_lowerCamelCase=0.0     ,			_lowerCamelCase=0.0     ,			_lowerCamelCase=0.0_2     ,			_lowerCamelCase=1E-0_6     ,			_lowerCamelCase=True     ,			**_lowerCamelCase     ,			):
         __UpperCamelCase	:	int		    =  hidden_size
         __UpperCamelCase	:	Any		    =  num_hidden_layers
         __UpperCamelCase	:	Any		    =  num_attention_heads
         __UpperCamelCase	:	int		    =  intermediate_size
         __UpperCamelCase	:	int		    =  hidden_act
         __UpperCamelCase	:	Tuple		    =  hidden_dropout_prob
         __UpperCamelCase	:	List[Any]		    =  attention_probs_dropout_prob
         __UpperCamelCase	:	Dict		    =  initializer_range
         __UpperCamelCase	:	Union[str, Any]		    =  layer_norm_eps

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

         super().__init__(**_lowerCamelCase    )




'''simple docstring'''
from urllib.parse import quote

import pytest

from datasets.utils.hub import hf_hub_url







@pytest.mark.parametrize('repo_id'				,     ['canonical_dataset_name', 'org-name/dataset-name']			)
@pytest.mark.parametrize('path'				,     ['filename.csv', 'filename with blanks.csv']			)
@pytest.mark.parametrize('revision'				,     [None, 'v2']			)
def  _UpperCamelCase (     _a	:	Any				,     _a	:	int				,     _a	:	Dict			):




    """simple docstring"""



    __UpperCamelCase	:	List[Any]		    =  hf_hub_url(repo_id=_a				,     path=_a				,     revision=_a			)
    assert url == f"""https://huggingface.co/datasets/{repo_id}/resolve/{revision or 'main'}/{quote(_a			)}"""



