



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


UpperCAmelCase :				List[Any]							=logging.get_logger(__name__)

UpperCAmelCase :				Optional[Any]							={
    """MCG-NJU/videomae-base""": """https://huggingface.co/MCG-NJU/videomae-base/resolve/main/config.json""",
}


class    _lowercase (a_   ):
				'''simple docstring'''







				lowercase__     =    """videomae"""

				def __init__(			self  ,			snake_case__=224  ,			snake_case__=16  ,			snake_case__=3  ,			snake_case__=16  ,			snake_case__=2  ,			snake_case__=768  ,			snake_case__=12  ,			snake_case__=12  ,			snake_case__=3072  ,			snake_case__="gelu"  ,			snake_case__=0.0  ,			snake_case__=0.0  ,			snake_case__=0.02  ,			snake_case__=1e-12  ,			snake_case__=True  ,			snake_case__=True  ,			snake_case__=6  ,			snake_case__=384  ,			snake_case__=4  ,			snake_case__=1536  ,			snake_case__=True  ,			**snake_case__  ,			):

									'''simple docstring'''


									super().__init__(**snake_case__     )

									UpperCamelCase_			= image_size
									UpperCamelCase_			= patch_size
									UpperCamelCase_			= num_channels
									UpperCamelCase_			= num_frames
									UpperCamelCase_			= tubelet_size

									UpperCamelCase_			= hidden_size
									UpperCamelCase_			= num_hidden_layers
									UpperCamelCase_			= num_attention_heads
									UpperCamelCase_			= intermediate_size
									UpperCamelCase_			= hidden_act
									UpperCamelCase_			= hidden_dropout_prob
									UpperCamelCase_			= attention_probs_dropout_prob
									UpperCamelCase_			= initializer_range
									UpperCamelCase_			= layer_norm_eps
									UpperCamelCase_			= qkv_bias
									UpperCamelCase_			= use_mean_pooling

									UpperCamelCase_			= decoder_num_attention_heads
									UpperCamelCase_			= decoder_hidden_size
									UpperCamelCase_			= decoder_num_hidden_layers
									UpperCamelCase_			= decoder_intermediate_size
									UpperCamelCase_			= norm_pix_loss




def   snake_case_    (			__lowercase      ,							__lowercase      ,							__lowercase      ,							__lowercase							):
   UpperCAmelCase_				:   Optional[int]							= int((lower_bound + upper_bound) // 2							)
   if array[r] == value:
      return r
   if lower_bound >= upper_bound:
      return -1
   if array[r] < value:
      return binary_search(__lowercase      ,							r + 1      ,							__lowercase      ,							__lowercase							)
   else:
      return binary_search(__lowercase      ,							__lowercase      ,							r - 1      ,							__lowercase							)
def   snake_case_    (			__lowercase      ,							__lowercase							):
   UpperCAmelCase_				:   Union[str, Any]							= 0
   if matrix[index][0] == value:
      return [index, 0]
   while index < len(__lowercase							) and matrix[index][0] < value:
      UpperCAmelCase_				:   str							= binary_search(matrix[index]      ,							0      ,							len(matrix[index]							) - 1      ,							__lowercase							)
      if r != -1:
         return [index, r]
      index += 1
   return [-1, -1]


if __name__ == "__main__":
       import doctest

       doctest.testmod()