


"""simple docstring"""





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


snake_case__						:   Optional[Any]			 = logging.get_logger(__name__)

snake_case__						:   Optional[Any]			 = {
    '''facebook/timesformer''': '''https://huggingface.co/facebook/timesformer/resolve/main/config.json''',
}



class 						snake_case_(				_a	):
     __UpperCamelCase     =    """timesformer"""






     def __init__(		self     :    List[str]    , UpperCamelCase_     :    Dict=2_2_4    , UpperCamelCase_     :    str=1_6    , UpperCamelCase_     :    Any=3    , UpperCamelCase_     :    Optional[int]=8    , UpperCamelCase_     :    Tuple=7_6_8    , UpperCamelCase_     :    Optional[int]=1_2    , UpperCamelCase_     :    Dict=1_2    , UpperCamelCase_     :    Union[str, Any]=3_0_7_2    , UpperCamelCase_     :    Dict="gelu"    , UpperCamelCase_     :    Tuple=0.0    , UpperCamelCase_     :    Union[str, Any]=0.0    , UpperCamelCase_     :    Optional[Any]=0.02    , UpperCamelCase_     :    Dict=1E-6    , UpperCamelCase_     :    Optional[Any]=True    , UpperCamelCase_     :    Union[str, Any]="divided_space_time"    , UpperCamelCase_     :    Any=0    , **UpperCamelCase_     :    Union[str, Any]    , ):
           super().__init__(**__UpperCAmelCase )

           lowerCAmelCase    :		Optional[Any]				=      image_size
           lowerCAmelCase    :		List[Any]				=      patch_size
           lowerCAmelCase    :		Tuple				=      num_channels
           lowerCAmelCase    :		Optional[int]				=      num_frames

           lowerCAmelCase    :		int				=      hidden_size
           lowerCAmelCase    :		Optional[Any]				=      num_hidden_layers
           lowerCAmelCase    :		List[str]				=      num_attention_heads
           lowerCAmelCase    :		List[str]				=      intermediate_size
           lowerCAmelCase    :		Optional[Any]				=      hidden_act
           lowerCAmelCase    :		int				=      hidden_dropout_prob
           lowerCAmelCase    :		List[Any]				=      attention_probs_dropout_prob
           lowerCAmelCase    :		int				=      initializer_range
           lowerCAmelCase    :		Tuple				=      layer_norm_eps
           lowerCAmelCase    :		Optional[int]				=      qkv_bias

           lowerCAmelCase    :		str				=      attention_type
           lowerCAmelCase    :		List[Any]				=      drop_path_rate






"""simple docstring"""







def      lowercase			(				A_       )->      str:
  '''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"

  a						:		Optional[Any]      							=			False

  if num < 0:
    a						:		Tuple      							=			True
    a						:		str      							=			-num

  a						:		list[int]      							=			[]
  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()






