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


lowercase__	:Tuple										=					logging.get_logger(__name__)

lowercase__	:Any										=					{
    "facebook/s2t-wav2vec2-large-en-de": (
        "https://huggingface.co/facebook/s2t-wav2vec2-large-en-de/resolve/main/config.json"
    ),
    # See all Speech2Text models at https://huggingface.co/models?filter=speech2text2
}







class        lowercase	(      lowercase__	):
							lowercase_ : Optional[Any]       ='''speech_to_text_2'''
							lowercase_ : Optional[int]       =['''past_key_values''']
							lowercase_ : Union[str, Any]       ={'''num_attention_heads''': '''decoder_attention_heads''', '''hidden_size''': '''d_model'''}




							def __init__(       self     ,A__=1_0_0_0_0     ,A__=6     ,A__=2_0_4_8     ,A__=4     ,A__=0.0     ,A__=True     ,A__="relu"     ,A__=2_5_6     ,A__=0.1     ,A__=0.0     ,A__=0.0     ,A__=0.02     ,A__=2     ,A__=True     ,A__=1     ,A__=0     ,A__=2     ,A__=1_0_2_4     ,**A__     ,):
												lowercase					=		vocab_size
												lowercase					=		d_model
												lowercase					=		decoder_ffn_dim
												lowercase					=		decoder_layers
												lowercase					=		decoder_attention_heads
												lowercase					=		dropout
												lowercase					=		attention_dropout
												lowercase					=		activation_dropout
												lowercase					=		activation_function
												lowercase					=		init_std
												lowercase					=		decoder_layerdrop
												lowercase					=		use_cache
												lowercase					=		decoder_layers
												lowercase					=		scale_embedding  # scale factor will be sqrt(d_model) if True
												lowercase					=		max_target_positions

												super().__init__(
												    pad_token_id=UpperCAmelCase__     ,bos_token_id=UpperCAmelCase__     ,eos_token_id=UpperCAmelCase__     ,decoder_start_token_id=UpperCAmelCase__     ,**UpperCAmelCase__     ,)





def  UpperCamelCase					(							lowerCAmelCase__				,    lowerCAmelCase__	):
					'''simple docstring'''
					return int((input_a, input_a).count(0	) == 0	)



def  UpperCamelCase					(							):
					'''simple docstring'''
					assert and_gate(0				,    0	) == 0
					assert and_gate(0				,    1	) == 0
					assert and_gate(1				,    0	) == 0
					assert and_gate(1				,    1	) == 1


if __name__ == "__main__":
							test_and_gate()
							print(and_gate(1, 0))
							print(and_gate(0, 0))
							print(and_gate(0, 1))
							print(and_gate(1, 1))




