





'''simple docstring'''


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


lowerCAmelCase					:     Any												=logging.get_logger(__name__)

lowerCAmelCase					:     str												={
    '''unc-nlp/lxmert-base-uncased''': '''https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json''',
}
class       a_   (				_lowerCAmelCase							):
     __A      =			"lxmert"
     __A      =			{}





     def __init__( self		:					int	,      lowercase		:					Union[str, Any]=30_522	,      lowercase		:					Dict=768	,      lowercase		:					Tuple=12	,      lowercase		:					Any=9_500	,      lowercase		:					Any=1_600	,      lowercase		:					Union[str, Any]=400	,      lowercase		:					Optional[int]=3_072	,      lowercase		:					str="gelu"	,      lowercase		:					List[Any]=0.1	,      lowercase		:					Tuple=0.1	,      lowercase		:					int=512	,      lowercase		:					Optional[Any]=2	,      lowercase		:					Dict=0.02	,      lowercase		:					Tuple=1e-1_2	,      lowercase		:					Optional[int]=9	,      lowercase		:					Union[str, Any]=5	,      lowercase		:					Any=5	,      lowercase		:					Optional[Any]=2_048	,      lowercase		:					Optional[int]=4	,      lowercase		:					List[Any]=6.67	,      lowercase		:					Union[str, Any]=True	,      lowercase		:					List[Any]=True	,      lowercase		:					List[str]=True	,      lowercase		:					Any=True	,      lowercase		:					Optional[Any]=True	,      lowercase		:					Union[str, Any]=True	,      lowercase		:					str=True	,      **lowercase		:					str	,      ):





        """simple docstring"""




        lowercase_			:Union[str, Any]    			= vocab_size
        lowercase_			:List[Any]    			= hidden_size
        lowercase_			:Optional[Any]    			= num_attention_heads
        lowercase_			:Any    			= hidden_act
        lowercase_			:List[Any]    			= intermediate_size
        lowercase_			:Optional[Any]    			= hidden_dropout_prob
        lowercase_			:Union[str, Any]    			= attention_probs_dropout_prob
        lowercase_			:Optional[Any]    			= max_position_embeddings
        lowercase_			:List[Any]    			= type_vocab_size
        lowercase_			:str    			= initializer_range
        lowercase_			:List[Any]    			= layer_norm_eps
        lowercase_			:List[Any]    			= num_qa_labels
        lowercase_			:int    			= num_object_labels
        lowercase_			:Optional[Any]    			= num_attr_labels
        lowercase_			:Union[str, Any]    			= l_layers
        lowercase_			:Dict    			= x_layers
        lowercase_			:Optional[int]    			= r_layers
        lowercase_			:Tuple    			= visual_feat_dim
        lowercase_			:Any    			= visual_pos_dim
        lowercase_			:Tuple    			= visual_loss_normalizer
        lowercase_			:Any    			= task_matched
        lowercase_			:Optional[int]    			= task_mask_lm
        lowercase_			:Any    			= task_obj_predict
        lowercase_			:Any    			= task_qa
        lowercase_			:Union[str, Any]    			= visual_obj_loss
        lowercase_			:Optional[Any]    			= visual_attr_loss
        lowercase_			:Tuple    			= visual_feat_loss
        lowercase_			:Any    			= {"vision": r_layers, "cross_encoder": x_layers, "language": l_layers}
        super().__init__(**lowercase						)









'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					int	,__lowerCamelCase					:					int ):
   return int((input_a, input_a).count(0 ) == 0 )
def 							UpperCAmelCase_  (						):
   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))


