


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


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

snake_case				:    Tuple       				=     {
    '''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  (      _snake_case							):
 SCREAMING_SNAKE_CASE__      =       'vivit'




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

       a						:Optional[Any] 							=       image_size
       a						:Tuple 							=       num_frames
       a						:Optional[Any] 							=       tubelet_size
       a						:Union[str, Any] 							=       num_channels
       a						:int 							=       qkv_bias

       super().__init__(**_lowerCamelCase    )








'''simple docstring'''



def    a__       (  a__						):




     """simple docstring"""


     if isinstance(a__      ,    a__						):
          raise TypeError("""'float' object cannot be interpreted as an integer"""						)
     if isinstance(a__      ,    a__						):
          raise TypeError("""'str' object cannot be interpreted as an integer"""						)

     if num == 0:
          return "0b0"

     __SCREAMING_SNAKE_CASE     =      False

     if num < 0:
          __SCREAMING_SNAKE_CASE     =      True
          __SCREAMING_SNAKE_CASE     =      -num

     __SCREAMING_SNAKE_CASE     =      []
     while num > 0:
          binary.insert(0      ,    num % 2						)
          num >>= 1

     if negative:
          return "-0b" + "".join(str(a__						) for e in binary						)

     return "0b" + "".join(str(a__						) for e in binary						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()






