

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


_snake_case         =  logging.get_logger(__name__)

_snake_case         =  {
    '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        a__  (							lowerCamelCase_  ):
   _SCREAMING_SNAKE_CASE   :					List[Any]     	=							'vivit'


   def __init__(			self      ,    _UpperCamelCase=224      ,    _UpperCamelCase=32      ,    _UpperCamelCase=[2, 16, 16]      ,    _UpperCamelCase=3      ,    _UpperCamelCase=768      ,    _UpperCamelCase=12      ,    _UpperCamelCase=12      ,    _UpperCamelCase=3072      ,    _UpperCamelCase="gelu_fast"      ,    _UpperCamelCase=0.0      ,    _UpperCamelCase=0.0      ,    _UpperCamelCase=0.0_2      ,    _UpperCamelCase=1E-0_6      ,    _UpperCamelCase=True      ,    **_UpperCamelCase      ,    ):





      """simple docstring"""





      _lowercase      :				List[str]      					=       hidden_size
      _lowercase      :				List[Any]      					=       num_hidden_layers
      _lowercase      :				Dict      					=       num_attention_heads
      _lowercase      :				Any      					=       intermediate_size
      _lowercase      :				List[Any]      					=       hidden_act
      _lowercase      :				Optional[int]      					=       hidden_dropout_prob
      _lowercase      :				Dict      					=       attention_probs_dropout_prob
      _lowercase      :				str      					=       initializer_range
      _lowercase      :				Optional[Any]      					=       layer_norm_eps

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

      super().__init__(**_UpperCamelCase  )






'''simple docstring'''
from timeit import timeit







def  _A		(     snake_case					)      ->     int:
   if number < 0:
      raise ValueError("the value of input must not be negative"					)
   _lowercase      :				Union[str, Any]      					=       0
   while number:
      number &= number - 1
      result += 1
   return result







def  _A		(     snake_case					)      ->     int:
   if number < 0:
      raise ValueError("the value of input must not be negative"					)
   _lowercase      :				int      					=       0
   while number:
      if number % 2 == 1:
         result += 1
      number >>= 1
   return result







def  _A		(     )      ->     None:

   def do_benchmark(snake_case					) -> None:
      _lowercase      :				Optional[int]      					=       "import __main__ as z"
      print(F'''Benchmark when {number = }:'''					)
      print(F'''{get_set_bits_count_using_modulo_operator(snake_case					) = }'''					)
      _lowercase      :				int      					=       timeit("z.get_set_bits_count_using_modulo_operator(25)"		,							setup=snake_case					)
      print(F'''timeit() runs in {timing} seconds'''					)
      print(F'''{get_set_bits_count_using_brian_kernighans_algorithm(snake_case					) = }'''					)
      _lowercase      :				Optional[int]      					=       timeit(
          "z.get_set_bits_count_using_brian_kernighans_algorithm(25)"		,							setup=snake_case		,							)
      print(F'''timeit() runs in {timing} seconds'''					)

   for number in (25, 37, 58, 0):
      do_benchmark(snake_case					)
      print()


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    benchmark()






