

"""simple docstring"""




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


__A      		=     logging.get_logger(__name__)

__A      		=     {
    '''facebook/timesformer''': '''https://huggingface.co/facebook/timesformer/resolve/main/config.json''',
}



class   lowercase_   (  A_					):
      UpperCamelCase_      :		Union[str, Any]										=    "timesformer"



      def __init__(      self				:    Tuple      , A__				:    Any=224      , A__				:    str=16      , A__				:    Tuple=3      , A__				:    List[str]=8      , A__				:    Union[str, Any]=768      , A__				:    Dict=12      , A__				:    List[Any]=12      , A__				:    Optional[int]=3072      , A__				:    str="gelu"      , A__				:    Union[str, Any]=0.0      , A__				:    Dict=0.0      , A__				:    str=0.02      , A__				:    Any=1e-6      , A__				:    Any=True      , A__				:    Tuple="divided_space_time"      , A__				:    Optional[Any]=0      , **A__				:    List[Any]      , )   ->					Dict:
        super().__init__(**_lowerCamelCase		)

        _snake_case						=							image_size
        _snake_case						=							patch_size
        _snake_case						=							num_channels
        _snake_case						=							num_frames

        _snake_case						=							hidden_size
        _snake_case						=							num_hidden_layers
        _snake_case						=							num_attention_heads
        _snake_case						=							intermediate_size
        _snake_case						=							hidden_act
        _snake_case						=							hidden_dropout_prob
        _snake_case						=							attention_probs_dropout_prob
        _snake_case						=							initializer_range
        _snake_case						=							layer_norm_eps
        _snake_case						=							qkv_bias

        _snake_case						=							attention_type
        _snake_case						=							drop_path_rate




def 				snake_case_(_UpperCamelCase			,	_UpperCamelCase					)							->     str:



  """simple docstring"""






  if a < 0 or b < 0:
    raise ValueError('''the value of both inputs must be positive'''					)
  _snake_case						=							str(bin(_UpperCamelCase					)					)[2:]  # remove the leading "0b"
  _snake_case						=							str(bin(_UpperCamelCase					)					)[2:]
  _snake_case						=							max(len(_UpperCamelCase					)			,	len(_UpperCamelCase					)					)
  return "0b" + "".join(
      str(int('''1''' in (char_a, char_b)					)					)
      for char_a, char_b in zip(a_binary.zfill(_UpperCamelCase					)			,	b_binary.zfill(_UpperCamelCase					)					)					)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

