


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


lowerCAmelCase__     			=							logging.get_logger(__name__)

lowerCAmelCase__     			=							{
    '''ZinengTang/tvlt-base''': '''https://huggingface.co/ZinengTang/tvlt-base/blob/main/config.json''',
}







class    lowerCamelCase__     ( lowerCAmelCase):
     SCREAMING_SNAKE_CASE__       =    '''tvlt'''





     def __init__(self	,  UpperCAmelCase=2_2_4	,  UpperCAmelCase=2_0_4_8	,  UpperCAmelCase=1_2_8	,  UpperCAmelCase=[1_6, 1_6]	,  UpperCAmelCase=[1_6, 1_6]	,  UpperCAmelCase=3	,  UpperCAmelCase=1	,  UpperCAmelCase=8	,  UpperCAmelCase=7_6_8	,  UpperCAmelCase=1_2	,  UpperCAmelCase=1_2	,  UpperCAmelCase=3_0_7_2	,  UpperCAmelCase="gelu"	,  UpperCAmelCase=0.0	,  UpperCAmelCase=0.0	,  UpperCAmelCase=0.02	,  UpperCAmelCase=1e-6	,  UpperCAmelCase=True	,  UpperCAmelCase=False	,  UpperCAmelCase=1_6	,  UpperCAmelCase=5_1_2	,  UpperCAmelCase=8	,  UpperCAmelCase=2_0_4_8	,  UpperCAmelCase=0.75	,  UpperCAmelCase=0.15	,  UpperCAmelCase="frame-level"	,  UpperCAmelCase=True	,  UpperCAmelCase=True	,  UpperCAmelCase="classification"	,  **UpperCAmelCase	,  )  ->     List[str]:
      super().__init__(**__lowerCamelCase )

      if audio_mask_type not in ("frame-level", "patch_level"):
       raise ValueError(
           '''audio_mask_type must be one of two acceptable strategies - {\'frame_level\', \'patch-level\') '''
           f"got {audio_mask_type}" )

      _lowercase							   =image_size
      _lowercase							   =spectrogram_length
      _lowercase							   =frequency_length
      _lowercase							   =image_patch_size
      _lowercase							   =audio_patch_size
      _lowercase							   =num_image_channels
      _lowercase							   =num_audio_channels
      _lowercase							   =num_frames

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

      _lowercase							   =decoder_num_attention_heads
      _lowercase							   =decoder_hidden_size
      _lowercase							   =decoder_num_hidden_layers
      _lowercase							   =decoder_intermediate_size
      _lowercase							   =pixel_mask_ratio
      _lowercase							   =audio_mask_ratio
      _lowercase							   =audio_mask_type

      _lowercase							   =task_matching
      _lowercase							   =task_mae
      _lowercase							   =loss_type





from ..utils import DummyObject, requires_backends







class    lowerCamelCase__     ( metaclass=lowerCAmelCase):
     SCREAMING_SNAKE_CASE__       =    ['''tensorflow_text''']





     def __init__(self	,  *UpperCAmelCase	,  **UpperCAmelCase )  ->     Any:
      requires_backends(self	,  ['''tensorflow_text'''] )

